javascript

package
v0.0.0-...-d1533f9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJSAnalyzer

func NewJSAnalyzer(logger interface {
	Info(msg string, keysAndValues ...interface{})
	Error(msg string, keysAndValues ...interface{})
	Debug(msg string, keysAndValues ...interface{})
}) core.Scanner

Types

type APIKeyFound

type APIKeyFound struct {
	Service    string `json:"service"`
	Key        string `json:"key"`
	Source     string `json:"source"`
	LineNumber int    `json:"line_number"`
}

type DOMSink

type DOMSink struct {
	Sink       string `json:"sink"`
	Source     string `json:"source"`
	LineNumber int    `json:"line_number"`
	Risk       string `json:"risk"`
}

type EndpointFound

type EndpointFound struct {
	Endpoint   string   `json:"endpoint"`
	Method     string   `json:"method"`
	Parameters []string `json:"parameters"`
	Source     string   `json:"source"`
}

type JSAnalysisResult

type JSAnalysisResult struct {
	URLs      []URLFound      `json:"urls"`
	Secrets   []SecretFound   `json:"secrets"`
	Libraries []LibraryFound  `json:"libraries"`
	APIKeys   []APIKeyFound   `json:"api_keys"`
	Endpoints []EndpointFound `json:"endpoints"`
	DOMSinks  []DOMSink       `json:"dom_sinks"`
}

type LibraryFound

type LibraryFound struct {
	Name            string   `json:"name"`
	Version         string   `json:"version"`
	Vulnerabilities []string `json:"vulnerabilities"`
	Severity        string   `json:"severity"`
}

type SecretFound

type SecretFound struct {
	Type       string `json:"type"`
	Value      string `json:"value"`
	Source     string `json:"source"`
	LineNumber int    `json:"line_number"`
	Confidence string `json:"confidence"`
}

type URLFound

type URLFound struct {
	URL        string `json:"url"`
	Source     string `json:"source"`
	LineNumber int    `json:"line_number"`
	Context    string `json:"context"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL