exposure

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package exposure checks for sensitive files and endpoints that should never be reachable: dotfiles, VCS metadata, API docs, metrics, backups, directory listings and admin dashboards. These checks are "safe" mode — they request a fixed list of well-known paths with GET only and send no attack payloads — but they do touch paths beyond the home page, so they are not passive.

To avoid false positives on single-page apps that answer 200 for everything, each check validates a content signature, not just the status code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupFiles

type BackupFiles struct{}

BackupFiles flags common backup/source-dump filenames left in the web root.

func (BackupFiles) ASVS

func (BackupFiles) ASVS() []string

func (BackupFiles) Category

func (BackupFiles) Category() core.Category

func (BackupFiles) Description

func (BackupFiles) Description() string

func (BackupFiles) ID

func (BackupFiles) ID() string

func (BackupFiles) Mode

func (BackupFiles) Mode() core.Mode

func (BackupFiles) OWASP

func (BackupFiles) OWASP() []string

func (BackupFiles) Run

type Dashboards

type Dashboards struct{}

Dashboards flags an unauthenticated admin/ops dashboard, including Scout's sibling tools' own UIs (Sentinel, Pulse) left open.

func (Dashboards) ASVS

func (Dashboards) ASVS() []string

func (Dashboards) Category

func (Dashboards) Category() core.Category

func (Dashboards) Description

func (Dashboards) Description() string

func (Dashboards) ID

func (Dashboards) ID() string

func (Dashboards) Mode

func (Dashboards) Mode() core.Mode

func (Dashboards) OWASP

func (Dashboards) OWASP() []string

func (Dashboards) Run

type DirListing

type DirListing struct{}

DirListing flags an auto-indexed directory.

func (DirListing) ASVS

func (DirListing) ASVS() []string

func (DirListing) Category

func (DirListing) Category() core.Category

func (DirListing) Description

func (DirListing) Description() string

func (DirListing) ID

func (DirListing) ID() string

func (DirListing) Mode

func (DirListing) Mode() core.Mode

func (DirListing) OWASP

func (DirListing) OWASP() []string

func (DirListing) Run

type DotEnv

type DotEnv struct{}

DotEnv flags a reachable .env file containing environment-variable assignments.

func (DotEnv) ASVS

func (DotEnv) ASVS() []string

func (DotEnv) Category

func (DotEnv) Category() core.Category

func (DotEnv) Description

func (DotEnv) Description() string

func (DotEnv) ID

func (DotEnv) ID() string

func (DotEnv) Mode

func (DotEnv) Mode() core.Mode

func (DotEnv) OWASP

func (DotEnv) OWASP() []string

func (DotEnv) Run

func (DotEnv) Run(ctx context.Context, t core.Target) ([]core.Finding, error)

type Git

type Git struct{}

Git flags an exposed .git directory (recoverable source + history).

func (Git) ASVS

func (Git) ASVS() []string

func (Git) Category

func (Git) Category() core.Category

func (Git) Description

func (Git) Description() string

func (Git) ID

func (Git) ID() string

func (Git) Mode

func (Git) Mode() core.Mode

func (Git) OWASP

func (Git) OWASP() []string

func (Git) Run

func (Git) Run(ctx context.Context, t core.Target) ([]core.Finding, error)

type Metrics

type Metrics struct{}

Metrics flags an exposed Prometheus-style metrics endpoint.

func (Metrics) ASVS

func (Metrics) ASVS() []string

func (Metrics) Category

func (Metrics) Category() core.Category

func (Metrics) Description

func (Metrics) Description() string

func (Metrics) ID

func (Metrics) ID() string

func (Metrics) Mode

func (Metrics) Mode() core.Mode

func (Metrics) OWASP

func (Metrics) OWASP() []string

func (Metrics) Run

func (Metrics) Run(ctx context.Context, t core.Target) ([]core.Finding, error)

type Swagger

type Swagger struct{}

Swagger flags exposed, unauthenticated API documentation.

func (Swagger) ASVS

func (Swagger) ASVS() []string

func (Swagger) Category

func (Swagger) Category() core.Category

func (Swagger) Description

func (Swagger) Description() string

func (Swagger) ID

func (Swagger) ID() string

func (Swagger) Mode

func (Swagger) Mode() core.Mode

func (Swagger) OWASP

func (Swagger) OWASP() []string

func (Swagger) Run

func (Swagger) Run(ctx context.Context, t core.Target) ([]core.Finding, error)

Jump to

Keyboard shortcuts

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