Documentation
¶
Overview ¶
Package app provides adapters for connecting services to sub-packages. These adapters implement the interfaces expected by the scan and scan workflow sub-packages while delegating to the concrete app-level services.
Package app provides the security validator service for validating workflow steps, scan configurations, and command payloads to prevent command injection and other security vulnerabilities.
Index ¶
- Variables
- func NewScanAuditServiceAdapter(svc *auditsvc.AuditService) scan.AuditService
- func NewScanRunSensorSelectorAdapter(selector *sensor.SensorSelector, policy SharedSensorsPolicy) scanrun.SensorSelector
- func NewScanSecurityValidatorAdapter(validator *SecurityValidator) scan.SecurityValidator
- func NewScanSensorSelectorAdapter(selector *sensor.SensorSelector, policy SharedSensorsPolicy) scan.SensorSelector
- func NewScanWorkflowAuditServiceAdapter(svc *auditsvc.AuditService) scanrun.AuditService
- func NewScanWorkflowSecurityValidatorAdapter(validator *SecurityValidator) scanrun.SecurityValidator
- func SanitizeTier(tier string) string
- type CreateScannerTemplateInput
- type ListScannerTemplatesInput
- type ScannerTemplateService
- func (s *ScannerTemplateService) ApprovalsRequired(ctx context.Context, tenantID string) (int, error)
- func (s *ScannerTemplateService) ApproveTemplateForSensors(ctx context.Context, tenantID, templateID, actorID string) (*scannertemplate.ScannerTemplate, error)
- func (s *ScannerTemplateService) CreateTemplate(ctx context.Context, input CreateScannerTemplateInput) (*scannertemplate.ScannerTemplate, error)
- func (s *ScannerTemplateService) DeleteTemplate(ctx context.Context, tenantID, templateID string) error
- func (s *ScannerTemplateService) DeprecateTemplate(ctx context.Context, tenantID, templateID string) (*scannertemplate.ScannerTemplate, error)
- func (s *ScannerTemplateService) DownloadTemplate(ctx context.Context, tenantID, templateID string) ([]byte, string, error)
- func (s *ScannerTemplateService) GetQuota() scannertemplate.TemplateQuota
- func (s *ScannerTemplateService) GetTemplate(ctx context.Context, tenantID, templateID string) (*scannertemplate.ScannerTemplate, error)
- func (s *ScannerTemplateService) GetTemplatesByIDs(ctx context.Context, tenantID string, templateIDs []string) ([]*scannertemplate.ScannerTemplate, error)
- func (s *ScannerTemplateService) GetUsage(ctx context.Context, tenantID string) (*TemplateUsageResult, error)
- func (s *ScannerTemplateService) LedgerTemplates(ctx context.Context, tenantID string) ([]jobsign.LedgerTemplate, error)
- func (s *ScannerTemplateService) ListTemplates(ctx context.Context, input ListScannerTemplatesInput) (pagination.Result[*scannertemplate.ScannerTemplate], error)
- func (s *ScannerTemplateService) SetLedger(l TemplateLedger, p TemplateApprovalPolicy)
- func (s *ScannerTemplateService) SetQuota(quota scannertemplate.TemplateQuota)
- func (s *ScannerTemplateService) SetSigningKeys(k *scannertemplate.Keyring)
- func (s *ScannerTemplateService) SigningKey(tenantID string) (*TemplateSigningKey, error)
- func (s *ScannerTemplateService) UpdateTemplate(ctx context.Context, input UpdateScannerTemplateInput) (*scannertemplate.ScannerTemplate, error)
- func (s *ScannerTemplateService) ValidateTemplate(ctx context.Context, input ValidateTemplateInput) (*template.ValidationResult, error)
- func (s *ScannerTemplateService) VerifyTemplateSignature(template *scannertemplate.ScannerTemplate) bool
- type SecurityValidator
- func (v *SecurityValidator) GetAllowedCapabilities() []string
- func (v *SecurityValidator) ValidateCommandPayload(ctx context.Context, tenantID shared.ID, payload map[string]any) *ValidationResult
- func (v *SecurityValidator) ValidateCronExpression(expr string) error
- func (v *SecurityValidator) ValidateIdentifier(name string, maxLen int, fieldName string) *ValidationResult
- func (v *SecurityValidator) ValidateIdentifiers(names []string, maxLen int, fieldName string) *ValidationResult
- func (v *SecurityValidator) ValidateScannerConfig(ctx context.Context, tenantID shared.ID, scannerConfig map[string]any) *ValidationResult
- func (v *SecurityValidator) ValidateStepConfig(ctx context.Context, tenantID shared.ID, toolName string, ...) *ValidationResult
- func (v *SecurityValidator) ValidateTier(tier string) error
- func (v *SecurityValidator) ValidateTierWithResult(tier string, fieldName string) *ValidationResult
- type SharedSensorsPolicy
- type TemplateApprovalPolicy
- type TemplateLedger
- type TemplateSigningKey
- type TemplateUsageResult
- type UpdateScannerTemplateInput
- type ValidateTemplateInput
- type ValidationError
- type ValidationResult
Constants ¶
This section is empty.
Variables ¶
var ( ErrTemplateLedgerRefused = shared.NewDomainError("TEMPLATE_LEDGER_REFUSED", "the job signer refused this template version; it is not approved for sensors", shared.ErrConflict) "the job signer did not answer; the template version is not approved for sensors. Try again", shared.ErrConflict) )
Template approval errors (the handler answers them with their code).
var ErrTemplateSigningDisabled = errors.New("custom template signing is not configured on this platform")
ErrTemplateSigningDisabled is returned by SigningKey when the platform has no template-signing key (no APP_TEMPLATE_SIGNING_KEY or APP_ENCRYPTION_KEY): custom templates are then sent unsigned and sensors refuse them.
var ValidTiers = []string{"shared", "dedicated", "premium"}
ValidTiers contains all valid platform sensor tiers.
Functions ¶
func NewScanAuditServiceAdapter ¶
func NewScanAuditServiceAdapter(svc *auditsvc.AuditService) scan.AuditService
NewScanAuditServiceAdapter creates an adapter for the scan package's AuditService interface.
func NewScanRunSensorSelectorAdapter ¶
func NewScanRunSensorSelectorAdapter(selector *sensor.SensorSelector, policy SharedSensorsPolicy) scanrun.SensorSelector
NewScanRunSensorSelectorAdapter creates an adapter for the scanrun package's SensorSelector interface. policy decides shared sensor access (nil: refused).
func NewScanSecurityValidatorAdapter ¶
func NewScanSecurityValidatorAdapter(validator *SecurityValidator) scan.SecurityValidator
NewScanSecurityValidatorAdapter creates an adapter for the scan package's SecurityValidator interface.
func NewScanSensorSelectorAdapter ¶
func NewScanSensorSelectorAdapter(selector *sensor.SensorSelector, policy SharedSensorsPolicy) scan.SensorSelector
NewScanSensorSelectorAdapter creates an adapter for the scan package's SensorSelector interface. policy decides shared sensor access (nil: refused).
func NewScanWorkflowAuditServiceAdapter ¶
func NewScanWorkflowAuditServiceAdapter(svc *auditsvc.AuditService) scanrun.AuditService
NewScanWorkflowAuditServiceAdapter creates an adapter for the scanrun package's AuditService interface.
func NewScanWorkflowSecurityValidatorAdapter ¶
func NewScanWorkflowSecurityValidatorAdapter(validator *SecurityValidator) scanrun.SecurityValidator
NewScanWorkflowSecurityValidatorAdapter creates an adapter for the scanrun package's SecurityValidator interface.
func SanitizeTier ¶
SanitizeTier converts a tier string to a valid tier, defaulting to "shared". This is useful for normalizing user input before processing.
Types ¶
type CreateScannerTemplateInput ¶
type CreateScannerTemplateInput struct {
TenantID string `json:"tenant_id" validate:"required,uuid"`
UserID string `json:"user_id" validate:"omitempty,uuid"`
Name string `json:"name" validate:"required,min=1,max=255"`
TemplateType string `json:"template_type" validate:"required,oneof=nuclei semgrep betterleaks"`
Description string `json:"description" validate:"max=1000"`
Content string `json:"content" validate:"required"` // Base64 encoded
Tags []string `json:"tags" validate:"max=20,dive,max=50"`
}
CreateScannerTemplateInput represents the input for creating a scanner template.
type ListScannerTemplatesInput ¶
type ListScannerTemplatesInput struct {
TenantID string `json:"tenant_id" validate:"required,uuid"`
TemplateType *string `json:"template_type" validate:"omitempty,oneof=nuclei semgrep betterleaks"`
Status *string `json:"status" validate:"omitempty,oneof=active pending_review deprecated revoked"`
Tags []string `json:"tags"`
Search string `json:"search" validate:"max=255"`
Page int `json:"page"`
PerPage int `json:"per_page"`
}
ListScannerTemplatesInput represents the input for listing scanner templates.
type ScannerTemplateService ¶
type ScannerTemplateService struct {
// contains filtered or unexported fields
}
ScannerTemplateService handles scanner template business operations.
func NewScannerTemplateService ¶
func NewScannerTemplateService(repo scannertemplate.Repository, signingSecret string, log *logger.Logger) *ScannerTemplateService
NewScannerTemplateService creates a new ScannerTemplateService.
func (*ScannerTemplateService) ApprovalsRequired ¶
func (s *ScannerTemplateService) ApprovalsRequired(ctx context.Context, tenantID string) (int, error)
ApprovalsRequired is the approval count a template version needs for tenantID: the scope policy's count for a widening (0 without a job signer).
func (*ScannerTemplateService) ApproveTemplateForSensors ¶
func (s *ScannerTemplateService) ApproveTemplateForSensors(ctx context.Context, tenantID, templateID, actorID string) (*scannertemplate.ScannerTemplate, error)
ApproveTemplateForSensors records actor's approval of the template's current version. Once the approvals reach the policy's count, the signer must accept the version before it is saved as approved.
func (*ScannerTemplateService) CreateTemplate ¶
func (s *ScannerTemplateService) CreateTemplate(ctx context.Context, input CreateScannerTemplateInput) (*scannertemplate.ScannerTemplate, error)
CreateTemplate creates a new scanner template.
func (*ScannerTemplateService) DeleteTemplate ¶
func (s *ScannerTemplateService) DeleteTemplate(ctx context.Context, tenantID, templateID string) error
DeleteTemplate deletes a scanner template.
func (*ScannerTemplateService) DeprecateTemplate ¶
func (s *ScannerTemplateService) DeprecateTemplate(ctx context.Context, tenantID, templateID string) (*scannertemplate.ScannerTemplate, error)
DeprecateTemplate marks a template as deprecated.
func (*ScannerTemplateService) DownloadTemplate ¶
func (s *ScannerTemplateService) DownloadTemplate(ctx context.Context, tenantID, templateID string) ([]byte, string, error)
DownloadTemplate returns the template content for download.
func (*ScannerTemplateService) GetQuota ¶
func (s *ScannerTemplateService) GetQuota() scannertemplate.TemplateQuota
GetQuota returns the current quota configuration.
func (*ScannerTemplateService) GetTemplate ¶
func (s *ScannerTemplateService) GetTemplate(ctx context.Context, tenantID, templateID string) (*scannertemplate.ScannerTemplate, error)
GetTemplate retrieves a scanner template by ID.
func (*ScannerTemplateService) GetTemplatesByIDs ¶
func (s *ScannerTemplateService) GetTemplatesByIDs(ctx context.Context, tenantID string, templateIDs []string) ([]*scannertemplate.ScannerTemplate, error)
GetTemplatesByIDs retrieves multiple templates by their IDs.
func (*ScannerTemplateService) GetUsage ¶
func (s *ScannerTemplateService) GetUsage(ctx context.Context, tenantID string) (*TemplateUsageResult, error)
GetUsage returns the current template usage for a tenant.
func (*ScannerTemplateService) LedgerTemplates ¶
func (s *ScannerTemplateService) LedgerTemplates(ctx context.Context, tenantID string) ([]jobsign.LedgerTemplate, error)
LedgerTemplates are tenantID's active templates whose current version is approved for sensors: the templates of a ledger sync or export.
func (*ScannerTemplateService) ListTemplates ¶
func (s *ScannerTemplateService) ListTemplates(ctx context.Context, input ListScannerTemplatesInput) (pagination.Result[*scannertemplate.ScannerTemplate], error)
ListTemplates lists scanner templates with filters.
func (*ScannerTemplateService) SetLedger ¶
func (s *ScannerTemplateService) SetLedger(l TemplateLedger, p TemplateApprovalPolicy)
SetLedger wires the job signer's ledger and the approval policy. Without a ledger (no job signer) template versions need no approval, as before: nothing would enforce it. With a ledger and no policy every version needs one approval.
func (*ScannerTemplateService) SetQuota ¶
func (s *ScannerTemplateService) SetQuota(quota scannertemplate.TemplateQuota)
SetQuota sets custom quota limits for the service.
func (*ScannerTemplateService) SetSigningKeys ¶
func (s *ScannerTemplateService) SetSigningKeys(k *scannertemplate.Keyring)
SetSigningKeys sets the keyring custom templates are signed with for sensors.
func (*ScannerTemplateService) SigningKey ¶
func (s *ScannerTemplateService) SigningKey(tenantID string) (*TemplateSigningKey, error)
SigningKey returns tenantID's template-signing public key.
func (*ScannerTemplateService) UpdateTemplate ¶
func (s *ScannerTemplateService) UpdateTemplate(ctx context.Context, input UpdateScannerTemplateInput) (*scannertemplate.ScannerTemplate, error)
UpdateTemplate updates an existing scanner template.
func (*ScannerTemplateService) ValidateTemplate ¶
func (s *ScannerTemplateService) ValidateTemplate(ctx context.Context, input ValidateTemplateInput) (*template.ValidationResult, error)
ValidateTemplate validates template content without saving.
func (*ScannerTemplateService) VerifyTemplateSignature ¶
func (s *ScannerTemplateService) VerifyTemplateSignature(template *scannertemplate.ScannerTemplate) bool
VerifyTemplateSignature verifies the signature of a template.
type SecurityValidator ¶
type SecurityValidator struct {
// contains filtered or unexported fields
}
SecurityValidator provides validation for security-sensitive operations. It validates tool names, capabilities, and configurations against registered tools to prevent command injection and unauthorized access.
func NewSecurityValidator ¶
func NewSecurityValidator(toolRepo tool.Repository, log *logger.Logger) *SecurityValidator
NewSecurityValidator creates a new SecurityValidator.
func (*SecurityValidator) GetAllowedCapabilities ¶
func (v *SecurityValidator) GetAllowedCapabilities() []string
GetAllowedCapabilities returns the list of allowed capabilities. This can be used by the UI to show valid options. Capabilities are loaded from the database with caching.
func (*SecurityValidator) ValidateCommandPayload ¶
func (v *SecurityValidator) ValidateCommandPayload(ctx context.Context, tenantID shared.ID, payload map[string]any) *ValidationResult
ValidateCommandPayload validates a command payload before sending to a sensor. This is the last line of defense before a command is executed.
func (*SecurityValidator) ValidateCronExpression ¶
func (v *SecurityValidator) ValidateCronExpression(expr string) error
ValidateCronExpression validates a cron expression format. This prevents cron injection attacks.
func (*SecurityValidator) ValidateIdentifier ¶
func (v *SecurityValidator) ValidateIdentifier(name string, maxLen int, fieldName string) *ValidationResult
ValidateIdentifier validates an identifier string against safe character patterns. Identifiers can only contain alphanumeric characters, dashes, and underscores. This should be used for StepKey, Tags, and similar user-provided identifiers.
func (*SecurityValidator) ValidateIdentifiers ¶
func (v *SecurityValidator) ValidateIdentifiers(names []string, maxLen int, fieldName string) *ValidationResult
ValidateIdentifiers validates a slice of identifiers.
func (*SecurityValidator) ValidateScannerConfig ¶
func (v *SecurityValidator) ValidateScannerConfig(ctx context.Context, tenantID shared.ID, scannerConfig map[string]any) *ValidationResult
ValidateScannerConfig validates a scan configuration's scanner settings.
func (*SecurityValidator) ValidateStepConfig ¶
func (v *SecurityValidator) ValidateStepConfig(ctx context.Context, tenantID shared.ID, toolName string, capabilities []string, config map[string]any) *ValidationResult
ValidateStepConfig validates a workflow step's tool name and configuration. This is called before creating a workflow step to ensure the tool is registered and the configuration matches the tool's schema.
func (*SecurityValidator) ValidateTier ¶
func (v *SecurityValidator) ValidateTier(tier string) error
ValidateTier validates a tier value against the allowed tier list. This should be called at application boundaries before database operations. Returns nil if the tier is valid or empty (empty defaults to 'shared').
func (*SecurityValidator) ValidateTierWithResult ¶
func (v *SecurityValidator) ValidateTierWithResult(tier string, fieldName string) *ValidationResult
ValidateTierWithResult validates a tier and returns a ValidationResult.
type SharedSensorsPolicy ¶
SharedSensorsPolicy says whether an organization may send scans to shared sensors, and if not, why: the access policy of RFC-100 §5 (scanpolicy.Service.SharedSensorsAllowed), the one rule the scan trigger, the pipeline and the organization's platform scanning view use.
type TemplateApprovalPolicy ¶
type TemplateApprovalPolicy interface {
EffectiveApprovals(ctx context.Context, tenantID string) (approvals, admins int, err error)
}
TemplateApprovalPolicy is the organization's widening approval count (*scope.Service).
type TemplateLedger ¶
type TemplateLedger interface {
ApplyLedger(ctx context.Context, ch jobsign.LedgerChange) (jobsign.LedgerApplyResult, error)
}
TemplateLedger is the job signer's ledger (*signer.Client).
type TemplateSigningKey ¶
type TemplateSigningKey struct {
Algorithm string `json:"algorithm"`
KeyID string `json:"key_id"`
PublicKey string `json:"public_key"` // base64 (standard)
SensorEnv string `json:"sensor_env"` // the sensor setting it goes in
}
TemplateSigningKey is a tenant's template-signing public key, to pin on the tenant's sensors (SENSOR_TEMPLATE_SIGNING_KEYS).
type TemplateUsageResult ¶
type TemplateUsageResult struct {
Usage scannertemplate.TemplateUsage `json:"usage"`
Quota scannertemplate.TemplateQuota `json:"quota"`
}
TemplateUsageResult combines usage and quota information.
type UpdateScannerTemplateInput ¶
type UpdateScannerTemplateInput struct {
TenantID string `json:"tenant_id" validate:"required,uuid"`
TemplateID string `json:"template_id" validate:"required,uuid"`
Name string `json:"name" validate:"omitempty,min=1,max=255"`
Description string `json:"description" validate:"max=1000"`
Content string `json:"content"` // Base64 encoded, optional
Tags []string `json:"tags" validate:"max=20,dive,max=50"`
// UserID is who changes it: the author of a new content version.
UserID string `json:"-"`
}
UpdateScannerTemplateInput represents the input for updating a scanner template.
type ValidateTemplateInput ¶
type ValidateTemplateInput struct {
TemplateType string `json:"template_type" validate:"required,oneof=nuclei semgrep betterleaks"`
Content string `json:"content" validate:"required"` // Base64 encoded
}
ValidateTemplateInput represents the input for validating template content.
type ValidationError ¶
ValidationError represents a validation error.
type ValidationResult ¶
type ValidationResult struct {
Valid bool
Errors []ValidationError
}
ValidationResult represents the result of a validation.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package accesscontrol provides the application-layer services for the 2-layer access control model (RBAC roles + Groups data scope).
|
Package accesscontrol provides the application-layer services for the 2-layer access control model (RBAC roles + Groups data scope). |
|
Package accessrequest runs the request-access queue: people who cannot sign up (sign-up policy admin_only, request access on) ask for an organization; a platform administrator approves (the organization is created with the requester as owner) or rejects (docs/architecture/user-onboarding.md, "Request access").
|
Package accessrequest runs the request-access queue: people who cannot sign up (sign-up policy admin_only, request access on) ask for an organization; a platform administrator approves (the organization is created with the requester as owner) or rejects (docs/architecture/user-onboarding.md, "Request access"). |
|
Package accountdeletion lets a person delete their own account (docs/rfcs/RFC-104).
|
Package accountdeletion lets a person delete their own account (docs/rfcs/RFC-104). |
|
Package activity provides the application service that records, queries, and aggregates user-facing activity events (asset created, finding reopened, scan triggered, etc).
|
Package activity provides the application service that records, queries, and aggregates user-facing activity events (asset created, finding reopened, scan triggered, etc). |
|
Package actscope decides which scan targets an actor may scan (research/15 L-06, owner decision D9).
|
Package actscope decides which scan targets an actor may scan (research/15 L-06, owner decision D9). |
|
Package adminapproval is the four-eyes rule of the platform console: a catastrophic action by one super admin needs the approval of another (docs/architecture/platform-console.md, "Four-eyes approvals").
|
Package adminapproval is the four-eyes rule of the platform console: a catastrophic action by one super admin needs the approval of another (docs/architecture/platform-console.md, "Four-eyes approvals"). |
|
Package adminconsole implements the platform admin console session (RFC-022, docs/rfcs/RFC-022-platform-admin-console.md).
|
Package adminconsole implements the platform admin console session (RFC-022, docs/rfcs/RFC-022-platform-admin-console.md). |
|
Package aianalysis manages AI agents: service accounts that take part in triage like a person (same commands, permissions, approvals and audit; the only difference is the AI label and provenance), each with accountable owners who answer for its results, and the ledger of their runs.
|
Package aianalysis manages AI agents: service accounts that take part in triage like a person (same commands, permissions, approvals and audit; the only difference is the AI label and provenance), each with accountable owners who answer for its results, and the ledger of their runs. |
|
Package aibundle builds the context bundle the platform sends to an AI model about one finding: the fields the use case's data class ceiling allows, each masked (internal fields under the organization's masking policy, restricted fields with every class masked), untrusted text fenced, and a digest the run records.
|
Package aibundle builds the context bundle the platform sends to an AI model about one finding: the fields the use case's data class ceiling allows, each masked (internal fields under the organization's masking policy, restricted fields with every class masked), untrusted text fenced, and a digest the run records. |
|
Package aiknowledge manages the knowledge an organization gives its AI agents and retrieves it for a run: sources with a visibility and a data class, document versions that a second person approves before any AI agent can retrieve them, secret refusal and prompt-injection quarantine at ingest, lexical retrieval scoped by the AI agent's own principal, and the record of what each run saw.
|
Package aiknowledge manages the knowledge an organization gives its AI agents and retrieves it for a run: sources with a visibility and a data class, document versions that a second person approves before any AI agent can retrieve them, secret refusal and prompt-injection quarantine at ingest, lexical retrieval scoped by the AI agent's own principal, and the record of what each run saw. |
|
Package aimaskmap keeps, per AI run, the masking key and the placeholder map the platform needs to turn a model's output back into real values.
|
Package aimaskmap keeps, per AI run, the masking key and the placeholder map the platform needs to turn a model's output back into real values. |
|
Package aipolicy decides whether finding content may leave the platform for an AI model: the organization's own AI application over MCP, or the platform's AI triage.
|
Package aipolicy decides whether finding content may leave the platform for an AI model: the organization's own AI application over MCP, or the platform's AI triage. |
|
Package aiprompt holds the prompt-injection defenses every AI prompt the platform builds shares: Unicode normalisation, the known-injection filter and the nonce fence around untrusted text.
|
Package aiprompt holds the prompt-injection defenses every AI prompt the platform builds shares: Unicode normalisation, the known-injection filter and the nonce fence around untrusted text. |
|
Package aitriage implements the application service for the aitriage bounded context — orchestrates pkg/domain/aitriage entities and cross-cutting concerns (audit, notifications, RBAC).
|
Package aitriage implements the application service for the aitriage bounded context — orchestrates pkg/domain/aitriage entities and cross-cutting concerns (audit, notifications, RBAC). |
|
Package apikey implements the application service for the apikey bounded context — orchestrates pkg/domain/apikey entities and cross-cutting concerns (audit, notifications, RBAC).
|
Package apikey implements the application service for the apikey bounded context — orchestrates pkg/domain/apikey entities and cross-cutting concerns (audit, notifications, RBAC). |
|
Package apispec manages the API descriptions of origin assets and their drift against what scans observed (docs/rfcs/RFC-056-web-attack-surface.md WS13).
|
Package apispec manages the API descriptions of origin assets and their drift against what scans observed (docs/rfcs/RFC-056-web-attack-surface.md WS13). |
|
Package asset implements the application service for the asset bounded context — orchestrates pkg/domain/asset entities and cross-cutting concerns (audit, notifications, RBAC).
|
Package asset implements the application service for the asset bounded context — orchestrates pkg/domain/asset entities and cross-cutting concerns (audit, notifications, RBAC). |
|
Package assetcanon moves stored asset names to the names ingest gives the same assets under CTIS 2.0 (docs/architecture/ctis-receiver.md and docs/operations/ctis-2-upgrade.md).
|
Package assetcanon moves stored asset names to the names ingest gives the same assets under CTIS 2.0 (docs/architecture/ctis-receiver.md and docs/operations/ctis-2-upgrade.md). |
|
Package assetdiscovery turns attack-surface growth into tenant notifications: newly discovered internet-facing assets, and existing assets a re-scan turned internet-facing.
|
Package assetdiscovery turns attack-surface growth into tenant notifications: newly discovered internet-facing assets, and existing assets a re-scan turned internet-facing. |
|
Package assetfreshness records when each enrichable attribute class of an asset was last observed and serves the asset's freshness (docs/architecture/asset-freshness.md).
|
Package assetfreshness records when each enrichable attribute class of an asset was last observed and serves the asset's freshness (docs/architecture/asset-freshness.md). |
|
Package assettech runs the asset technology jobs.
|
Package assettech runs the asset technology jobs. |
|
Package assignment implements the application service for the assignment bounded context — orchestrates pkg/domain/assignment entities and cross-cutting concerns (audit, notifications, RBAC).
|
Package assignment implements the application service for the assignment bounded context — orchestrates pkg/domain/assignment entities and cross-cutting concerns (audit, notifications, RBAC). |
|
Package attack implements the application service for the attack bounded context — orchestrates pkg/domain/attack entities and cross-cutting concerns (audit, notifications, RBAC).
|
Package attack implements the application service for the attack bounded context — orchestrates pkg/domain/attack entities and cross-cutting concerns (audit, notifications, RBAC). |
|
Package audit implements the application service for the audit bounded context — orchestrates pkg/domain/audit entities and cross-cutting concerns (audit, notifications, RBAC).
|
Package audit implements the application service for the audit bounded context — orchestrates pkg/domain/audit entities and cross-cutting concerns (audit, notifications, RBAC). |
|
chainclassify
Package chainclassify explains why each audit_log_chain row does or does not verify.
|
Package chainclassify explains why each audit_log_chain row does or does not verify. |
|
chainclassify/chaintest
Package chaintest seeds audit_log_chain rows in the shapes the historical hashing defects left behind, for DB-backed tests of classification and rebaseline.
|
Package chaintest seeds audit_log_chain rows in the shapes the historical hashing defects left behind, for DB-backed tests of classification and rebaseline. |
|
Package auth implements the application service for the auth bounded context — orchestrates pkg/domain/auth entities and cross-cutting concerns (audit, notifications, RBAC).
|
Package auth implements the application service for the auth bounded context — orchestrates pkg/domain/auth entities and cross-cutting concerns (audit, notifications, RBAC). |
|
domainverify
Package domainverify implements DNS-TXT domain-ownership verification and the verified-domain gate for SSO JIT auto-provisioning (SSO P1).
|
Package domainverify implements DNS-TXT domain-ownership verification and the verified-domain gate for SSO JIT auto-provisioning (SSO P1). |
|
Package automation implements the application service for automations (event rules When/If/Then) — orchestrates pkg/domain/automation entities and cross-cutting concerns (audit, notifications, RBAC).
|
Package automation implements the application service for automations (event rules When/If/Then) — orchestrates pkg/domain/automation entities and cross-cutting concerns (audit, notifications, RBAC). |
|
Package bountyprogram imports and runs the bug-bounty programs an organization follows (RFC-065, docs/architecture/bounty-programs.md).
|
Package bountyprogram imports and runs the bug-bounty programs an organization follows (RFC-065, docs/architecture/bounty-programs.md). |
|
Package capability implements the application service for the capability bounded context — orchestrates pkg/domain/capability entities and cross-cutting concerns (audit, notifications, RBAC).
|
Package capability implements the application service for the capability bounded context — orchestrates pkg/domain/capability entities and cross-cutting concerns (audit, notifications, RBAC). |
|
Package certificate serves the Certificates view: lists and counts compiled as the caller through the list query contract, so the tenant and the caller's data scope on the certificate asset are always in the WHERE.
|
Package certificate serves the Certificates view: lists and counts compiled as the caller through the list query contract, so the tenant and the caller's data scope on the certificate asset are always in the WHERE. |
|
Package certmonitor implements OpenCTEM's Certificate-Transparency (CT) discovery source: a scheduled, per-tenant poller that queries public CT data (crt.sh, with SSLMate Cert Spotter as the fallback) for the tenant's own domains and emits first-class ExposureEvents.
|
Package certmonitor implements OpenCTEM's Certificate-Transparency (CT) discovery source: a scheduled, per-tenant poller that queries public CT data (crt.sh, with SSLMate Cert Spotter as the fallback) for the tenant's own domains and emits first-class ExposureEvents. |
|
Package cirun runs the CI side of the platform: the OIDC token exchange that gives a pipeline run a short-lived upload token, the upload of its results, and the central gate verdict.
|
Package cirun runs the CI side of the platform: the OIDC token exchange that gives a pipeline run a short-lived upload token, the upload of its results, and the central gate verdict. |
|
Package closuremode is the organization's closing mode in front of every writer that closes findings without a person (docs/architecture/ finding-verification-plan.md, "Closing mode").
|
Package closuremode is the organization's closing mode in front of every writer that closes findings without a person (docs/architecture/ finding-verification-plan.md, "Closing mode"). |
|
Package codescan manages platform code scanning of repositories: the tenant's template, each repository's settings, and the baseline state of its protected branches.
|
Package codescan manages platform code scanning of repositories: the tenant's template, each repository's settings, and the baseline state of its protected branches. |
|
Package command implements the application service for the command bounded context — orchestrates pkg/domain/command entities and cross-cutting concerns (audit, notifications, RBAC).
|
Package command implements the application service for the command bounded context — orchestrates pkg/domain/command entities and cross-cutting concerns (audit, notifications, RBAC). |
|
Package commandlog keeps the per-task logs sensors send (sensor protocol v2, POST /api/v2/sensor/commands/{id}/logs; docs/rfcs/RFC-029-sensor- protocol-v2-and-sdk-stability.md §4.4.1) and serves them to the run page.
|
Package commandlog keeps the per-task logs sensors send (sensor protocol v2, POST /api/v2/sensor/commands/{id}/logs; docs/rfcs/RFC-029-sensor- protocol-v2-and-sdk-stability.md §4.4.1) and serves them to the run page. |
|
Package compliance implements the application service for the compliance bounded context — orchestrates pkg/domain/compliance entities and cross-cutting concerns (audit, notifications, RBAC).
|
Package compliance implements the application service for the compliance bounded context — orchestrates pkg/domain/compliance entities and cross-cutting concerns (audit, notifications, RBAC). |
|
Package configoverview lists the installation's operator settings for the platform console's Configuration page: for each one, whether it is managed in the console or on the server, where the effective value comes from (console, environment or built-in default), whether changing it needs a restart, and which console page changes it.
|
Package configoverview lists the installation's operator settings for the platform console's Configuration page: for each one, whether it is managed in the console or on the server, where the effective value comes from (console, environment or built-in default), whether changing it needs a restart, and which console page changes it. |
|
Package connector defines the common contract for cloud / infra asset-inventory connectors (AWS, GCP, Azure, Kubernetes, git-host).
|
Package connector defines the common contract for cloud / infra asset-inventory connectors (AWS, GCP, Azure, Kubernetes, git-host). |
|
Package consolesetting holds the shared mechanics of a platform setting that moved from an environment variable into the platform console:
|
Package consolesetting holds the shared mechanics of a platform setting that moved from an environment variable into the platform console: |
|
consolesettingtest
Package consolesettingtest holds the in-memory doubles the tests of the console settings share: a platform_settings store, an admin audit log, a notifier, a real cipher and a super admin.
|
Package consolesettingtest holds the in-memory doubles the tests of the console settings share: a platform_settings store, an admin audit log, a notifier, a real cipher and a super admin. |
|
Package contentcatalog is the application service of the content catalog: offline import of signed bundles into the instance catalog, and per organization install, update, pin, rollback and uninstall with an optional approval step and an audit row per action.
|
Package contentcatalog is the application service of the content catalog: offline import of signed bundles into the instance catalog, and per organization install, update, pin, rollback and uninstall with an optional approval step and an audit row per action. |
|
Package contentpack is the application service of the content pack store: ingest (canonical archive, lint, tier, credential scan), signing, storage, listing and revocation, with audit.
|
Package contentpack is the application service of the content pack store: ingest (canonical archive, lint, tier, credential scan), signing, storage, listing and revocation, with audit. |
|
contentpacktest
Package contentpacktest builds packs for tests that go through the whole upload path.
|
Package contentpacktest builds packs for tests that go through the whole upload path. |
|
Package contentpin plans the content a scan job pins at dispatch (RFC-061 §3.7, docs/architecture/content-packs.md): the platform wordlist pack the job's depth selects, named by digest, and the lists generated for the job from the organization's own data, carried inline.
|
Package contentpin plans the content a scan job pins at dispatch (RFC-061 §3.7, docs/architecture/content-packs.md): the platform wordlist pack the job's depth selects, named by digest, and the lists generated for the job from the organization's own data, carried inline. |
|
builtin
Package builtin holds the curated wordlist packs of the current release, embedded in the API so subdomain enumeration works on a fresh install with no import and no internet access (docs/architecture/wordlists.md).
|
Package builtin holds the curated wordlist packs of the current release, embedded in the API so subdomain enumeration works on a fresh install with no import and no internet access (docs/architecture/wordlists.md). |
|
Package contentrule runs detection rules on the platform (docs/rfcs/RFC-140-rule-packs.md, docs/architecture/rule-packs.md): it builds each organization's engine from the stable platform rule packs and the organization's own enabled rules, scans web documents with it, and turns secret matches into exposures.
|
Package contentrule runs detection rules on the platform (docs/rfcs/RFC-140-rule-packs.md, docs/architecture/rule-packs.md): it builds each organization's engine from the stable platform rule packs and the organization's own enabled rules, scans web documents with it, and turns secret matches into exposures. |
|
builtin
Package builtin holds the curated detection rule packs of this build: web fingerprint rules and sensitive-information rules, written for this project (docs/architecture/rule-packs.md).
|
Package builtin holds the curated detection rule packs of this build: web fingerprint rules and sensitive-information rules, written for this project (docs/architecture/rule-packs.md). |
|
Package contentsource is the application service of rule sources: an organization's git repositories of rules, templates and wordlists that the platform alone fetches, lints, signs and keeps as immutable snapshots, with candidates, promotion and rollback.
|
Package contentsource is the application service of rule sources: an organization's git repositories of rules, templates and wordlists that the platform alone fetches, lints, signs and keeps as immutable snapshots, with candidates, promotion and rollback. |
|
Package coverage drives the asset coverage ledger (docs/rfcs/RFC-093-asset-coverage.md): it keeps the ledger in line with the registry's coverage policy, plans due pairs into work through the scope gate, settles them from their runs, and detects coverage gaps.
|
Package coverage drives the asset coverage ledger (docs/rfcs/RFC-093-asset-coverage.md): it keeps the ledger in line with the registry's coverage policy, plans due pairs into work through the scope gate, settles them from their runs, and detects coverage gaps. |
|
Package ctisformats registers the CTIS 2.0 standard-format adapters with the CTIS importer (docs/architecture/ctis-receiver.md).
|
Package ctisformats registers the CTIS 2.0 standard-format adapters with the CTIS importer (docs/architecture/ctis-receiver.md). |
|
Package dashboard is the application service for customizable dashboards (docs/architecture/dashboards.md, docs/rfcs/RFC-021-customizable-dashboards.md).
|
Package dashboard is the application service for customizable dashboards (docs/architecture/dashboards.md, docs/rfcs/RFC-021-customizable-dashboards.md). |
|
facts
Package facts is the "Rebuild dashboard data" action over the dashboard fact layer (api/docs/architecture/dashboards.md, "Facts maintainer").
|
Package facts is the "Rebuild dashboard data" action over the dashboard fact layer (api/docs/architecture/dashboards.md, "Facts maintainer"). |
|
widgets
Package widgets computes typed dashboard widgets from the dashboard fact tables (docs/architecture/dashboards.md, "Widget data").
|
Package widgets computes typed dashboard widgets from the dashboard fact tables (docs/architecture/dashboards.md, "Widget data"). |
|
Package datascope enforces the Layer 2 (group) data scope: which assets, and so which findings and other asset-bound rows, a member may see and change.
|
Package datascope enforces the Layer 2 (group) data scope: which assets, and so which findings and other asset-bound rows, a member may see and change. |
|
Package defectdojo wires the DefectDojo co-existence connector (RFC-013): pull findings from a tenant's DefectDojo integration, convert to CTIS, and ingest them — with OpenCTEM remaining the system of record.
|
Package defectdojo wires the DefectDojo co-existence connector (RFC-013): pull findings from a tenant's DefectDojo integration, convert to CTIS, and ingest them — with OpenCTEM remaining the system of record. |
|
Package deploymentregion is the installation's data region: the region every new organization is stamped with at creation (tenants.region, never changed afterwards).
|
Package deploymentregion is the installation's data region: the region every new organization is stamped with at creation (tenants.region, never changed afterwards). |
|
Package easm serves the External Attack Surface Management overview (RFC-036 §6.10, GET /api/v1/easm/summary): the surface, how much of it is attributed, what is new, the open external exposures and how fresh the passive monitoring is.
|
Package easm serves the External Attack Surface Management overview (RFC-036 §6.10, GET /api/v1/easm/summary): the surface, how much of it is attributed, what is new, the open external exposures and how fresh the passive monitoring is. |
|
Package easmdns runs EASM's DNS-only checks (RFC-036 P1) for each tenant: dangling DNS (a CNAME or delegation pointing at something that does not exist — the subdomain-takeover precondition) and, in email.go, email security posture.
|
Package easmdns runs EASM's DNS-only checks (RFC-036 P1) for each tenant: dangling DNS (a CNAME or delegation pointing at something that does not exist — the subdomain-takeover precondition) and, in email.go, email security posture. |
|
Package entitlement is the one place that answers what an organization may add and use (docs/architecture/limits.md): its effective limits and their usage, the check every creation path calls, the feature denies every module gate and named-feature seam reads, and the grace a lost feature keeps.
|
Package entitlement is the one place that answers what an organization may add and use (docs/architecture/limits.md): its effective limits and their usage, the check every creation path calls, the feature denies every module gate and named-feature seam reads, and the grace a lost feature keeps. |
|
Package evidence stores and serves the typed proof attached to findings (docs/architecture/finding-evidence.md): it normalizes and masks what a tool sent, encrypts the secret values apart from the masked item, lists the masked items, and reveals secret values to a person who may see them, with an audit record and a timeline entry for every reveal.
|
Package evidence stores and serves the typed proof attached to findings (docs/architecture/finding-evidence.md): it normalizes and masks what a tool sent, encrypts the secret values apart from the masked item, lists the masked items, and reveals secret values to a person who may see them, with an audit record and a timeline entry for every reveal. |
|
Package exposure implements the application service for the exposure bounded context — orchestrates pkg/domain/exposure entities and cross-cutting concerns (audit, notifications, RBAC).
|
Package exposure implements the application service for the exposure bounded context — orchestrates pkg/domain/exposure entities and cross-cutting concerns (audit, notifications, RBAC). |
|
Package exposurebridge promotes internal findings that represent an EXPOSURE rather than a code vulnerability into the Exposure Register (the exposure event store), so they show up in the Exposures view continuously — realizing the CTEM Discovery "exposure ≠ vulnerability" principle.
|
Package exposurebridge promotes internal findings that represent an EXPOSURE rather than a code vulnerability into the Exposure Register (the exposure event store), so they show up in the Exposures view continuously — realizing the CTEM Discovery "exposure ≠ vulnerability" principle. |
|
Package feedrelay is the platform side of the feed relay (docs/rfcs/RFC-142-feed-relay.md): a platform with no outbound access receives its signed feeds through platform-owned sensors that have internet access.
|
Package feedrelay is the platform side of the feed relay (docs/rfcs/RFC-142-feed-relay.md): a platform with no outbound access receives its signed feeds through platform-owned sensors that have internet access. |
|
Package feedstatus turns the stored progress of a platform-wide intelligence feed (EPSS, CISA KEV, the vulnerability bundles) into what an operator needs: one state, an error code with parameters, honest times.
|
Package feedstatus turns the stored progress of a platform-wide intelligence feed (EPSS, CISA KEV, the vulnerability bundles) into what an operator needs: one state, an error code with parameters, honest times. |
|
Package feedsync runs a platform-wide intelligence feed's sync in the background when an operator asks for it, so the HTTP request does no download or import work.
|
Package feedsync runs a platform-wide intelligence feed's sync in the background when an operator asks for it, so the HTTP request does no download or import work. |
|
Package finding implements the application service for the finding bounded context — orchestrates pkg/domain/finding entities and cross-cutting concerns (audit, notifications, RBAC).
|
Package finding implements the application service for the finding bounded context — orchestrates pkg/domain/finding entities and cross-cutting concerns (audit, notifications, RBAC). |
|
Package findingimport imports the files other security tools export (Nessus, Qualys, CycloneDX, SPDX, OSV, CSAF, OpenVEX, DefectDojo, ...) uploaded by a person: it converts each file with the ctis importer package, ingests the report with the uploader's rights, and applies the statements of VEX documents to the tenant's matching findings.
|
Package findingimport imports the files other security tools export (Nessus, Qualys, CycloneDX, SPDX, OSV, CSAF, OpenVEX, DefectDojo, ...) uploaded by a person: it converts each file with the ctis importer package, ingests the report with the uploader's rights, and applies the statements of VEX documents to the tenant's matching findings. |
|
Package findinglifecycle manages an organization's finding lifecycles (docs/rfcs/RFC-110-tenant-lifecycles.md): the sub-status catalog, the schemes and their versions (draft, validate, publish, roll back).
|
Package findinglifecycle manages an organization's finding lifecycles (docs/rfcs/RFC-110-tenant-lifecycles.md): the sub-status catalog, the schemes and their versions (draft, validate, publish, roll back). |
|
Package importmapping serves an organization's import mappings: CRUD with immutable versions, validation, a preview on a sample that stores nothing, and the resolution of "format=mapping:<ref>[@<version>]" for imports.
|
Package importmapping serves an organization's import mappings: CRUD with immutable versions, validation, a preview on a sample that stores nothing, and the resolution of "format=mapping:<ref>[@<version>]" for imports. |
|
Package ingest provides unified ingestion of assets and findings from various formats.
|
Package ingest provides unified ingestion of assets and findings from various formats. |
|
Package ingestqueue accepts CI results and file imports fast and hands them to the ingest worker (docs/rfcs/RFC-122-ingest-receipts.md, "Accept fast, apply async").
|
Package ingestqueue accepts CI results and file imports fast and hands them to the ingest worker (docs/rfcs/RFC-122-ingest-receipts.md, "Accept fast, apply async"). |
|
Package instancezone manages instance scan zones (docs/rfcs/RFC-100-shared-sensors.md §6.1): private ranges an instance administrator lets shared sensors scan, the shared sensors that serve each zone and the organizations it is assigned to, and the lookup the scan trigger uses to route an organization's internal target to a shared sensor.
|
Package instancezone manages instance scan zones (docs/rfcs/RFC-100-shared-sensors.md §6.1): private ranges an instance administrator lets shared sensors scan, the shared sensors that serve each zone and the organizations it is assigned to, and the lookup the scan trigger uses to route an organization's internal target to a shared sensor. |
|
Package integration implements the application service for the integration bounded context — orchestrates pkg/domain/integration entities and cross-cutting concerns (audit, notifications, RBAC).
|
Package integration implements the application service for the integration bounded context — orchestrates pkg/domain/integration entities and cross-cutting concerns (audit, notifications, RBAC). |
|
Package ioc wires Indicators of Compromise to the runtime telemetry stream.
|
Package ioc wires Indicators of Compromise to the runtime telemetry stream. |
|
Package jira implements the application service for the jira bounded context — orchestrates pkg/domain/jira entities and cross-cutting concerns (audit, notifications, RBAC).
|
Package jira implements the application service for the jira bounded context — orchestrates pkg/domain/jira entities and cross-cutting concerns (audit, notifications, RBAC). |
|
Package leakedsecretpolicy decides whether an imported leaked secret value (the password, token or key of a leaked credential) is kept.
|
Package leakedsecretpolicy decides whether an imported leaked secret value (the password, token or key of a leaked credential) is kept. |
|
Package licensepolicy evaluates the organization's license policy on its package links and keeps one license finding per asset, package and declared license set that the policy denies (or flags for review, when the organization opts in).
|
Package licensepolicy evaluates the organization's license policy on its package links and keeps one license finding per asset, package and declared license set that the policy denies (or flags for review, when the organization opts in). |
|
Package lifecycle runs the idle-organization policy (docs/architecture/idle-workspaces.md): the daily sweep that reminds, makes read-only, warns and marks for deletion the organizations nobody signs in to, the read-only check the API applies, and the platform administrator's switch that turns the policy on for one organization.
|
Package lifecycle runs the idle-organization policy (docs/architecture/idle-workspaces.md): the daily sweep that reminds, makes read-only, warns and marks for deletion the organizations nobody signs in to, the read-only check the API applies, and the platform administrator's switch that turns the policy on for one organization. |
|
Package mcpoauth is the OAuth 2.1 authorization server of the MCP endpoint: authorization requests, consent, the token and revocation endpoints, and the check every MCP request's access token goes through.
|
Package mcpoauth is the OAuth 2.1 authorization server of the MCP endpoint: authorization requests, consent, the token and revocation endpoints, and the check every MCP request's access token goes through. |
|
Package module implements the application service for the module bounded context — orchestrates pkg/domain/module entities and cross-cutting concerns (audit, notifications, RBAC).
|
Package module implements the application service for the module bounded context — orchestrates pkg/domain/module entities and cross-cutting concerns (audit, notifications, RBAC). |
|
Package navpin serves a member's sidebar pins (research/236 C4): a page, a built-in findings quick view or a saved view, with a live count for the two views.
|
Package navpin serves a member's sidebar pins (research/236 C4): a page, a built-in findings quick view or a saved view, with a live count for the two views. |
|
Package onboarding serves the fork a signed-in account without an organization sees (docs/rfcs/RFC-104): its pending invitations, the organizations its verified email domain may join, and whether it may create one.
|
Package onboarding serves the fork a signed-in account without an organization sees (docs/rfcs/RFC-104): its pending invitations, the organizations its verified email domain may join, and whether it may create one. |
|
Package orgdeletion deletes organizations after a grace period (docs/architecture/organization-deletion.md).
|
Package orgdeletion deletes organizations after a grace period (docs/architecture/organization-deletion.md). |
|
Package orgrelay is the platform setting email.tenant_relay: whether an organization's own mail relay carries its organization mail (invitations, account setup, member notices, scheduled reports).
|
Package orgrelay is the platform setting email.tenant_relay: whether an organization's own mail relay carries its organization mail (invitations, account setup, member notices, scheduled reports). |
|
Package orgtrust manages trusts between organizations (RFC-058): a host organization trusts a home organization, the home organization accepts, and external members from that home may then satisfy the host's SSO and 2FA policy with a session from their home identity provider.
|
Package orgtrust manages trusts between organizations (RFC-058): a host organization trusts a home organization, the home organization accepts, and external members from that home may then satisfy the host's SSO and 2FA policy with a session from their home identity provider. |
|
Package outbox implements the application service for the outbox bounded context — orchestrates pkg/domain/outbox entities and cross-cutting concerns (audit, notifications, RBAC).
|
Package outbox implements the application service for the outbox bounded context — orchestrates pkg/domain/outbox entities and cross-cutting concerns (audit, notifications, RBAC). |
|
Package pagemon runs web page monitoring: watch management, the dispatch of due fetches through the coverage path, server-side change detection on fetch results, and alerts.
|
Package pagemon runs web page monitoring: watch management, the dispatch of due fetches through the coverage path, server-side change detection on fetch results, and alerts. |
|
Package participation serves the watchers of findings and remediation tasks (RFC-120, docs/architecture/participants-and-watchers.md).
|
Package participation serves the watchers of findings and remediation tasks (RFC-120, docs/architecture/participants-and-watchers.md). |
|
Package platformai is the platform's own AI provider: the provider, model and API key that organizations in "platform" AI mode use, set by a platform administrator in the console (Settings > AI provider) instead of AI_PLATFORM_PROVIDER, AI_PLATFORM_MODEL and ANTHROPIC/OPENAI/GEMINI_API_KEY and a restart.
|
Package platformai is the platform's own AI provider: the provider, model and API key that organizations in "platform" AI mode use, set by a platform administrator in the console (Settings > AI provider) instead of AI_PLATFORM_PROVIDER, AI_PLATFORM_MODEL and ANTHROPIC/OPENAI/GEMINI_API_KEY and a restart. |
|
Package platformalert is the platform's alert webhook: an HTTPS address, set by a platform administrator in the console (Settings > Alerts), that receives the alerts the API raises for administrators (low disk space, stale backups, expiring certificates, console setting changes) next to the e-mail.
|
Package platformalert is the platform's alert webhook: an HTTPS address, set by a platform administrator in the console (Settings > Alerts), that receives the alerts the API raises for administrators (low disk space, stale backups, expiring certificates, console setting changes) next to the e-mail. |
|
Package platformcaptcha is the platform's CAPTCHA (Cloudflare Turnstile): the site key and secret key a platform administrator sets in the console (Settings > CAPTCHA) instead of CAPTCHA_TURNSTILE_SITE_KEY and CAPTCHA_TURNSTILE_SECRET and a restart.
|
Package platformcaptcha is the platform's CAPTCHA (Cloudflare Turnstile): the site key and secret key a platform administrator sets in the console (Settings > CAPTCHA) instead of CAPTCHA_TURNSTILE_SITE_KEY and CAPTCHA_TURNSTILE_SECRET and a restart. |
|
Package platformemail is the platform's own e-mail (SMTP) settings, set by a platform administrator in the admin console (Settings > E-mail) instead of SMTP_* environment variables.
|
Package platformemail is the platform's own e-mail (SMTP) settings, set by a platform administrator in the admin console (Settings > E-mail) instead of SMTP_* environment variables. |
|
Package platformlegal is the operator's legal information (links to the terms and privacy policy, the built-in legal pages' values, the security.txt contact), set by a platform administrator in the admin console (Settings > Legal) instead of LEGAL_* / SECURITY_* environment variables of the web console.
|
Package platformlegal is the operator's legal information (links to the terms and privacy policy, the built-in legal pages' values, the security.txt contact), set by a platform administrator in the admin console (Settings > Legal) instead of LEGAL_* / SECURITY_* environment variables of the web console. |
|
Package platformmfa is the platform setting auth.mfa: the lowest two-factor requirement every organization carries (the floor).
|
Package platformmfa is the platform setting auth.mfa: the lowest two-factor requirement every organization carries (the floor). |
|
Package platformrole manages who holds which platform role (RFC-134): the console's own role assignments, never the tenant roles.
|
Package platformrole manages who holds which platform role (RFC-134): the console's own role assignments, never the tenant roles. |
|
Package platformsociallogin is the platform's social login (Google, GitHub, Microsoft): the client ID, client secret, scopes and on/off switch a platform administrator sets per provider in the console (Settings > Social login) instead of OAUTH_<PROVIDER>_* and a restart.
|
Package platformsociallogin is the platform's social login (Google, GitHub, Microsoft): the client ID, client secret, scopes and on/off switch a platform administrator sets per provider in the console (Settings > Social login) instead of OAUTH_<PROVIDER>_* and a restart. |
|
Package platformuser holds the platform admin console's support actions on one account (Console > Users, RFC-022): revoke its sessions, unlock it, send a password reset, resend email verification.
|
Package platformuser holds the platform admin console's support actions on one account (Console > Users, RFC-022): revoke its sessions, unlock it, send a password reset, resend email verification. |
|
Package posture serves the external attack surface posture score (docs/architecture/easm-posture.md): the precomputed per-asset facts are rebuilt on each organization's schedule or on Recalculate now, and every read sums the facts of the assets the reader may see, compiled through the list query contract, so the tenant and the data scope are always in the WHERE.
|
Package posture serves the external attack surface posture score (docs/architecture/easm-posture.md): the precomputed per-asset facts are rebuilt on each organization's schedule or on Recalculate now, and every read sums the facts of the assets the reader may see, compiled through the list query contract, so the tenant and the data scope are always in the WHERE. |
|
Package programfeed imports the signed public program feed into the platform catalog and brings every subscribed program up to date (RFC-065 §16, docs/architecture/bounty-programs.md).
|
Package programfeed imports the signed public program feed into the platform catalog and brings every subscribed program up to date (RFC-065 §16, docs/architecture/bounty-programs.md). |
|
Package programtarget ingests bug-bounty program targets as the tenant's assets through the standard CTIS ingest (RFC-065 §16.8, docs/rfcs/RFC-065-bug-bounty-programs.md) and records which assets are a program's targets.
|
Package programtarget ingests bug-bounty program targets as the tenant's assets through the standard CTIS ingest (RFC-065 §16.8, docs/rfcs/RFC-065-bug-bounty-programs.md) and records which assets are a program's targets. |
|
Package proxypool is the application service for sensor proxy pools: pool and endpoint management with encrypted, write-only credentials, the network path of each sensor, the egress a scan job gets at delivery, the credentials a leasing sensor fetches, and the health the platform scores from sensor reports.
|
Package proxypool is the application service for sensor proxy pools: pool and endpoint management with encrypted, write-only credentials, the network path of each sensor, the egress a scan job gets at delivery, the credentials a leasing sensor fetches, and the health the platform scores from sensor reports. |
|
Package query runs custom queries (docs/architecture/query-language.md) for a request's caller: it resolves the caller's principal (tenant, data scope, permissions) on the server, builds the plan with pkg/querylang, bounds concurrency per user and per tenant, and hands the plan to the executor.
|
Package query runs custom queries (docs/architecture/query-language.md) for a request's caller: it resolves the caller's principal (tenant, data scope, permissions) on the server, builds the plan with pkg/querylang, bounds concurrency per user and per tenant, and hands the plan to the executor. |
|
Package reclassify recomputes the priority class and SLA deadline of open findings from the durable finding-priority queue (docs/architecture/scoring-versions.md).
|
Package reclassify recomputes the priority class and SLA deadline of open findings from the durable finding-priority queue (docs/architecture/scoring-versions.md). |
|
Package refingerprint re-keys stored findings to the current identity recipe (RFC-043 §6).
|
Package refingerprint re-keys stored findings to the current identity recipe (RFC-043 §6). |
|
Package rekey re-encrypts every value the platform stores under APP_ENCRYPTION_KEY with a new key, in one transaction (cmd/rekey).
|
Package rekey re-encrypts every value the platform stores under APP_ENCRYPTION_KEY with a new key, in one transaction (cmd/rekey). |
|
Package remediation implements the application service for remediation groups (RFC-015): grouping findings by the fix that resolves them and resolving a whole group in one action.
|
Package remediation implements the application service for remediation groups (RFC-015): grouping findings by the fix that resolves them and resolving a whole group in one action. |
|
Package retest runs continuous retests (RFC-039, docs/rfcs/RFC-039-continuous-retest.md): it re-checks a finding against the finding's own target and settles the finding — fixed, still present (regression reopen) or unknown.
|
Package retest runs continuous retests (RFC-039, docs/rfcs/RFC-039-continuous-retest.md): it re-checks a finding against the finding's own target and settles the finding — fixed, still present (regression reopen) or unknown. |
|
Package retestcheck manages a finding's retest check: the custom check a person attaches to a finding so that its retest re-runs it.
|
Package retestcheck manages a finding's retest check: the custom check a person attaches to a finding so that its retest re-runs it. |
|
Package savedview manages saved list views (UI style contract D15, research 17 R3, docs/rfcs/RFC-048-list-query-contract.md §3.6).
|
Package savedview manages saved list views (UI style contract D15, research 17 R3, docs/rfcs/RFC-048-list-query-contract.md §3.6). |
|
Package sbomexport writes a software bill of materials from the components the platform stores, as CycloneDX 1.6 JSON or SPDX 2.3 JSON.
|
Package sbomexport writes a software bill of materials from the components the platform stores, as CycloneDX 1.6 JSON or SPDX 2.3 JSON. |
|
Package scan implements the application service for the scan bounded context — orchestrates pkg/domain/scan entities and cross-cutting concerns (audit, notifications, RBAC).
|
Package scan implements the application service for the scan bounded context — orchestrates pkg/domain/scan entities and cross-cutting concerns (audit, notifications, RBAC). |
|
Package scancoverage holds the pure, IO-free planning logic for license-aware rolling scan coverage (RFC-007): how big a batch may be under a scanner's license, and which assets to scan next.
|
Package scancoverage holds the pure, IO-free planning logic for license-aware rolling scan coverage (RFC-007): how big a batch may be under a scanner's license, and which assets to scan next. |
|
Package scangov is scan approval governance (RFC-073, docs/rfcs/RFC-073-scan-approval-governance.md): the organization's approval settings (the mode an owner chooses and the approval rules).
|
Package scangov is scan approval governance (RFC-073, docs/rfcs/RFC-073-scan-approval-governance.md): the organization's approval settings (the mode an owner chooses and the approval rules). |
|
Package scanidentity is the platform layer of the scan identification markers: an instance-wide User-Agent and up to four request headers every organization's scan jobs carry, each optionally enforced (no organization, program or sensor-local layer replaces it).
|
Package scanidentity is the platform layer of the scan identification markers: an instance-wide User-Agent and up to four request headers every organization's scan jobs carry, each optionally enforced (no organization, program or sensor-local layer replaces it). |
|
Package scanpolicy serves the platform policy for scan approval (RFC-073, docs/rfcs/RFC-073-scan-approval-governance.md §5): a platform default and a per-organization override, set only by a platform administrator, that lets the organization choose its scan approval mode or forces one; and the effective mode of an organization (its owner's choice under that policy).
|
Package scanpolicy serves the platform policy for scan approval (RFC-073, docs/rfcs/RFC-073-scan-approval-governance.md §5): a platform default and a per-organization override, set only by a platform administrator, that lets the organization choose its scan approval mode or forces one; and the effective mode of an organization (its owner's choice under that policy). |
|
Package scan workflow provides adapters to bridge app types with scan workflow interfaces.
|
Package scan workflow provides adapters to bridge app types with scan workflow interfaces. |
|
Package scanwindow applies scan window policies (RFC-067, docs/architecture/scan-windows.md): it finds the sources that govern a target (resolver.go) and manages policies and overrides (service.go).
|
Package scanwindow applies scan window policies (RFC-067, docs/architecture/scan-windows.md): it finds the sources that govern a target (resolver.go) and manages policies and overrides (service.go). |
|
Package scanzone is the application service for scan zones: CRUD, sensor assignment and the coverage view.
|
Package scanzone is the application service for scan zones: CRUD, sensor assignment and the coverage view. |
|
Package scim implements SCIM 2.0 provisioning (RFC-009): per-tenant bearer tokens and the User provisioning that maps SCIM operations onto OpenCTEM users + tenant memberships.
|
Package scim implements SCIM 2.0 provisioning (RFC-009): per-tenant bearer tokens and the User provisioning that maps SCIM operations onto OpenCTEM users + tenant memberships. |
|
Package scmapp binds code-host app installations to organizations and handles the code host's installation webhooks (docs/rfcs/RFC-077-ci-enforced-gate-and-pr-feedback.md, section 3.3).
|
Package scmapp binds code-host app installations to organizations and handles the code host's installation webhooks (docs/rfcs/RFC-077-ci-enforced-gate-and-pr-feedback.md, section 3.3). |
|
Package scope implements the application service for the scope bounded context — orchestrates pkg/domain/scope entities and cross-cutting concerns (audit, notifications, RBAC).
|
Package scope implements the application service for the scope bounded context — orchestrates pkg/domain/scope entities and cross-cutting concerns (audit, notifications, RBAC). |
|
Package scopeauth is the one answer to "has this tenant authorized active probes of this name or address?" (RFC-054 §4.2 step 6).
|
Package scopeauth is the one answer to "has this tenant authorized active probes of this name or address?" (RFC-054 §4.2 step 6). |
|
Package securityoverview computes the organization's security overview: a short list of posture checks (sign-in, people, credentials, scanning, organization) with a status each and one score.
|
Package securityoverview computes the organization's security overview: a short list of posture checks (sign-in, people, credentials, scanning, organization) with a status each and one score. |
|
Package sensor implements the application service for the sensor bounded context — orchestrates pkg/domain/sensor entities and cross-cutting concerns (audit, notifications, RBAC).
|
Package sensor implements the application service for the sensor bounded context — orchestrates pkg/domain/sensor entities and cross-cutting concerns (audit, notifications, RBAC). |
|
Package sensorgrant manages per-sensor grants: reading them, narrowing and widening them, promoting and demoting the trust level, and the grant a pairing approval creates (docs/rfcs/RFC-052-sensor-pairing-and-authorization.md §5).
|
Package sensorgrant manages per-sensor grants: reading them, narrowing and widening them, promoting and demoting the trust level, and the grant a pairing approval creates (docs/rfcs/RFC-052-sensor-pairing-and-authorization.md §5). |
|
Package sensorpairing is interactive sensor pairing (docs/rfcs/RFC-052-sensor-pairing-and-authorization.md §4): a sensor that holds only the platform URL asks to pair with its own Ed25519 key, both sides show a short authentication string (SAS), and an administrator binds the key to the organization after comparing it, re-authenticating and ticking "the fingerprint matches".
|
Package sensorpairing is interactive sensor pairing (docs/rfcs/RFC-052-sensor-pairing-and-authorization.md §4): a sensor that holds only the platform URL asks to pair with its own Ed25519 key, both sides show a short authentication string (SAS), and an administrator binds the key to the organization after comparing it, re-authenticating and ticking "the fingerprint matches". |
|
Package signup serves the platform sign-up policy (who may create an organization) to every sign-up path, and lets a platform administrator change it in the console (docs/architecture/user-onboarding.md, "Sign-up policy").
|
Package signup serves the platform sign-up policy (who may create an organization) to every sign-up path, and lets a platform administrator change it in the console (docs/architecture/user-onboarding.md, "Sign-up policy"). |
|
Package signupevent records sign-up events and raises burst alerts for the platform console (docs/architecture/signup-activity.md).
|
Package signupevent records sign-up events and raises burst alerts for the platform console (docs/architecture/signup-activity.md). |
|
Package sla is the app-layer for SLA policy & compliance.
|
Package sla is the app-layer for SLA policy & compliance. |
|
Package storagequota is the storage quota of organizations: how many MiB of uploaded files (evidence, attachments) one organization may hold.
|
Package storagequota is the storage quota of organizations: how many MiB of uploaded files (evidence, attachments) one organization may hold. |
|
Package supportaccess runs support access: an organization owner grants a named platform administrator time-boxed, read-only access for a reason; the administrator opens support sessions inside the grant from the console; every access is written to both the organization's audit log and the admin audit log, and owners are emailed.
|
Package supportaccess runs support access: an organization owner grants a named platform administrator time-boxed, read-only access for a reason; the administrator opens support sessions inside the grant from the console; every access is written to both the organization's audit log and the admin audit log, and owners are emailed. |
|
Package suspension holds the platform administrator's kill switches (docs/architecture/organization-suspension.md): suspending an organization and the access gate every credential path asks before it reaches one.
|
Package suspension holds the platform administrator's kill switches (docs/architecture/organization-suspension.md): suspending an organization and the access gate every credential path asks before it reaches one. |
|
Package systemstatus is the platform console's Health page (RFC-114): a read-only, aggregate-only view of the installation's essentials (service health, free space, backup age, certificate expiry, version) and the watcher that tells the platform administrators when one gets worse.
|
Package systemstatus is the platform console's Health page (RFC-114): a read-only, aggregate-only view of the installation's essentials (service health, free space, backup age, certificate expiry, version) and the watcher that tells the platform administrators when one gets worse. |
|
Package technology serves the Technologies view of the external attack surface: lists and counts compiled as the caller through the list query contract, so the tenant and the caller's data scope on every asset that runs a technology are always in the WHERE.
|
Package technology serves the Technologies view of the external attack surface: lists and counts compiled as the caller through the list query contract, so the tenant and the caller's data scope on every asset that runs a technology are always in the WHERE. |
|
Package template provides template validation for different scanner types.
|
Package template provides template validation for different scanner types. |
|
Package tenablesc is the platform side of the Tenable.sc sensor connector: it turns a Tenable integration into connector_sync commands for the sensor that holds the Tenable credentials, and follows those commands to keep the integration's sync state and incremental cursor.
|
Package tenablesc is the platform side of the Tenable.sc sensor connector: it turns a Tenable integration into connector_sync commands for the sensor that holds the Tenable credentials, and follows those commands to keep the integration's sync state and incremental cursor. |
|
Package tenant implements the application service for the tenant bounded context — orchestrates pkg/domain/tenant entities and cross-cutting concerns (audit, notifications, RBAC).
|
Package tenant implements the application service for the tenant bounded context — orchestrates pkg/domain/tenant entities and cross-cutting concerns (audit, notifications, RBAC). |
|
Package tenantai is an organization's AI settings: whether AI triage is turned on (consent), where the AI comes from (the platform's provider, the organization's own provider, or off), the own provider's kind, base URL, model and write-only key, and a "test connection" call.
|
Package tenantai is an organization's AI settings: whether AI triage is turned on (consent), where the AI comes from (the platform's provider, the organization's own provider, or off), the own provider's kind, base URL, model and write-only key, and a "test connection" call. |
|
Package threat implements the application service for the threat bounded context — orchestrates pkg/domain/threat entities and cross-cutting concerns (audit, notifications, RBAC).
|
Package threat implements the application service for the threat bounded context — orchestrates pkg/domain/threat entities and cross-cutting concerns (audit, notifications, RBAC). |
|
Package threatalert plans and delivers emerging-threat alerts: one per organization and vulnerability, opened or escalated by material vulnerability events and by findings the matcher creates, scored, routed to an immediate message, the daily digest or the list, under a per-hour cap and quiet hours.
|
Package threatalert plans and delivers emerging-threat alerts: one per organization and vulnerability, opened or escalated by material vulnerability events and by findings the matcher creates, scored, routed to an immediate message, the daily digest or the list, under a per-hour cap and quiet hours. |
|
Package threatmodel implements the continuous threat-modeling generation engine: it resolves a scope's crown-jewel / critical targets, walks the exposure-chain graph per attacker profile, and enumerates the applicable ATT&CK techniques per hop with a live-derived status (open / mitigated / covered / accepted / theoretical).
|
Package threatmodel implements the continuous threat-modeling generation engine: it resolves a scope's crown-jewel / critical targets, walks the exposure-chain graph per attacker profile, and enumerates the applicable ATT&CK techniques per hop with a live-derived status (open / mitigated / covered / accepted / theoretical). |
|
Package threatsource is the platform setting that decides where KEV and EPSS come from.
|
Package threatsource is the platform setting that decides where KEV and EPSS come from. |
|
Package ticketbridge adapts the finding service's inbound ticket path (status moves and disposition requests driven by a tracker) to the ticket services' own narrow interfaces.
|
Package ticketbridge adapts the finding service's inbound ticket path (status moves and disposition requests driven by a tracker) to the ticket services' own narrow interfaces. |
|
Package ticketmap is the application service for ticket field and status mapping profiles: create, edit (draft), validate against the tracker's live metadata, publish, roll back, preview and simulate.
|
Package ticketmap is the application service for ticket field and status mapping profiles: create, edit (draft), validate against the tracker's live metadata, publish, roll back, preview and simulate. |
|
Package tool implements the application service for the tool bounded context — orchestrates pkg/domain/tool entities and cross-cutting concerns (audit, notifications, RBAC).
|
Package tool implements the application service for the tool bounded context — orchestrates pkg/domain/tool entities and cross-cutting concerns (audit, notifications, RBAC). |
|
Package validation defines the Stage-4 contract: WHAT gets validated, WHAT counts as evidence, WHO gates it — but NOT HOW a technique runs.
|
Package validation defines the Stage-4 contract: WHAT gets validated, WHAT counts as evidence, WHO gates it — but NOT HOW a technique runs. |
|
Package versioncheck tells platform administrators about newer releases and security releases of OpenCTEM: it fetches the signed release feed once a day (or takes an administrator's offline import of it), verifies it with a root pinned in the binary, and compares it with the running version on the instance.
|
Package versioncheck tells platform administrators about newer releases and security releases of OpenCTEM: it fetches the signed release feed once a day (or takes an administrator's offline import of it), verifies it with a root pinned in the binary, and compares it with the running version on the instance. |
|
Package vex manages the organization's VEX statements and applies them to findings: on create, edit, delete and expiry, and to findings ingest creates later (sticky).
|
Package vex manages the organization's VEX statements and applies them to findings: on create, edit, delete and expiry, and to findings ingest creates later (sticky). |
|
Package vulnevent emits the platform-wide log of material vulnerability changes after each corpus import and each KEV or EPSS sync.
|
Package vulnevent emits the platform-wide log of material vulnerability changes after each corpus import and each KEV or EPSS sync. |
|
Package vulnfeed imports the signed vulnerability bundles the collector publishes (openctemio/vulnfeed) into the CVE corpus.
|
Package vulnfeed imports the signed vulnerability bundles the collector publishes (openctemio/vulnfeed) into the CVE corpus. |
|
Package vulnmatch runs inventory vulnerability matching: it evaluates each global catalog version once against its product's ranges, then reconciles each organization's findings with the matches of the software it runs.
|
Package vulnmatch runs inventory vulnerability matching: it evaluates each global catalog version once against its product's ranges, then reconciles each organization's findings with the matches of the software it runs. |
|
Package webendpoint serves the web surface sub-inventory to people (docs/rfcs/RFC-056-web-attack-surface.md): lists and stats compiled as the caller through the list query contract (tenant and data scope always in the WHERE), and by-id reads that answer "not found" for another tenant's endpoint and for one whose origin asset is outside the caller's data scope.
|
Package webendpoint serves the web surface sub-inventory to people (docs/rfcs/RFC-056-web-attack-surface.md): lists and stats compiled as the caller through the list query contract (tenant and data scope always in the WHERE), and by-id reads that answer "not found" for another tenant's endpoint and for one whose origin asset is outside the caller's data scope. |
|
Package webevidence stores and serves what sensors saw when they fetched web assets (status, title, masked snippet, optional screenshot).
|
Package webevidence stores and serves what sensors saw when they fetched web assets (status, title, masked snippet, optional screenshot). |
|
Package webverify plans the verification of sensitive web paths (docs/architecture/web-content-pipeline.md).
|
Package webverify plans the verification of sensitive web paths (docs/architecture/web-content-pipeline.md). |
|
Package wordlist manages an organization's own wordlists (docs/architecture/wordlists.md, "Organization lists"): create, edit, switch on or off and delete, each change audited.
|
Package wordlist manages an organization's own wordlists (docs/architecture/wordlists.md, "Organization lists"): create, edit, switch on or off and delete, each change audited. |