internal/

directory
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: GPL-3.0

Directories

Path Synopsis
app
Package app provides adapters for connecting services to sub-packages.
Package app provides adapters for connecting services to sub-packages.
accesscontrol
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).
activity
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).
agent
Package agent implements the application service for the agent bounded context — orchestrates pkg/domain/agent entities and cross-cutting concerns (audit, notifications, RBAC).
Package agent implements the application service for the agent bounded context — orchestrates pkg/domain/agent entities and cross-cutting concerns (audit, notifications, RBAC).
aitriage
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).
apikey
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).
asset
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).
assignment
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).
attack
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).
audit
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).
auth
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).
auth/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).
capability
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).
command
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).
compliance
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).
connector
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).
ctemid
Package ctemid provides the application service that mirrors the CTEM-ID catalog from an external JSON feed (default https://ctem.org/source.json) into local reference storage, mirroring the KEV/EPSS threat-intel refresh pattern.
Package ctemid provides the application service that mirrors the CTEM-ID catalog from an external JSON feed (default https://ctem.org/source.json) into local reference storage, mirroring the KEV/EPSS threat-intel refresh pattern.
defectdojo
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.
exposure
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).
exposurebridge
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.
finding
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).
ingest
Package ingest provides unified ingestion of assets and findings from various formats.
Package ingest provides unified ingestion of assets and findings from various formats.
integration
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).
ioc
Package ioc wires Indicators of Compromise to the runtime telemetry stream.
Package ioc wires Indicators of Compromise to the runtime telemetry stream.
jira
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).
module
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).
outbox
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).
pipeline
Package pipeline provides adapters to bridge app types with pipeline interfaces.
Package pipeline provides adapters to bridge app types with pipeline interfaces.
reclassify
Package reclassify provides the runtime glue that connects priority-change producers (threat-intel refresh, control CRUD, rule CRUD) to the PriorityReclassifyController's queue/Reclassifier contracts.
Package reclassify provides the runtime glue that connects priority-change producers (threat-intel refresh, control CRUD, rule CRUD) to the PriorityReclassifyController's queue/Reclassifier contracts.
remediation
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.
scan
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).
scancoverage
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.
scim
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.
scope
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).
sla
Package sla is the app-layer for SLA policy & compliance.
Package sla is the app-layer for SLA policy & compliance.
template
Package template implements the application service for the template bounded context — orchestrates pkg/domain/template entities and cross-cutting concerns (audit, notifications, RBAC).
Package template implements the application service for the template bounded context — orchestrates pkg/domain/template entities and cross-cutting concerns (audit, notifications, RBAC).
tenant
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).
threat
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).
threatmodel
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).
ticketing
Package ticketing holds shared logic for creating issue-tracker tickets (Jira, GitHub Issues, ...) from findings.
Package ticketing holds shared logic for creating issue-tracker tickets (Jira, GitHub Issues, ...) from findings.
tool
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).
validation
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.
workflow
Package workflow implements the application service for the workflow bounded context — orchestrates pkg/domain/workflow entities and cross-cutting concerns (audit, notifications, RBAC).
Package workflow implements the application service for the workflow bounded context — orchestrates pkg/domain/workflow entities and cross-cutting concerns (audit, notifications, RBAC).
Package config loads and validates application configuration from environment variables.
Package config loads and validates application configuration from environment variables.
infra
adapters
Package adapters provides a registry for scanner output adapters.
Package adapters provides a registry for scanner output adapters.
adapters/core
Package core provides the core interfaces and base implementations for the OpenCTEM Scanner SDK.
Package core provides the core interfaces and base implementations for the OpenCTEM Scanner SDK.
adapters/gitleaks
Package gitleaks provides an adapter to convert Gitleaks JSON output to CTIS.
Package gitleaks provides an adapter to convert Gitleaks JSON output to CTIS.
adapters/nuclei
Package nuclei provides an adapter to convert Nuclei JSONL output to CTIS.
Package nuclei provides an adapter to convert Nuclei JSONL output to CTIS.
adapters/recon
Package recon provides an adapter that turns recon-scanner output (subdomain enumeration, DNS, port scans, HTTP probes, URL crawling) into a CTIS Report, so recon tools plug into the same ingest path as vulnerability scanners.
Package recon provides an adapter that turns recon-scanner output (subdomain enumeration, DNS, port scans, HTTP probes, URL crawling) into a CTIS Report, so recon tools plug into the same ingest path as vulnerability scanners.
adapters/sarif
Package sarif provides an adapter to convert SARIF format to CTIS.
Package sarif provides an adapter to convert SARIF format to CTIS.
adapters/semgrep
Package semgrep provides an adapter to convert Semgrep JSON output to CTIS.
Package semgrep provides an adapter to convert Semgrep JSON output to CTIS.
adapters/trivy
Package trivy provides an adapter to convert Trivy JSON output to CTIS.
Package trivy provides an adapter to convert Trivy JSON output to CTIS.
adapters/vuls
Package vuls provides an adapter to convert Vuls JSON output to CTIS.
Package vuls provides an adapter to convert Vuls JSON output to CTIS.
controller
Package controller implements K8s-style reconciliation loop controllers for self-healing background operations.
Package controller implements K8s-style reconciliation loop controllers for self-healing background operations.
fetchers
Package fetchers provides template fetching from various sources (Git, S3, HTTP).
Package fetchers provides template fetching from various sources (Git, S3, HTTP).
http
Package http hosts the HTTP server scaffolding (router, options, lifecycle).
Package http hosts the HTTP server scaffolding (router, options, lifecycle).
http/handler
Package handler provides HTTP handlers for the API server.
Package handler provides HTTP handlers for the API server.
http/middleware
Package middleware provides HTTP middleware for the API server.
Package middleware provides HTTP middleware for the API server.
http/routes
Package routes registers all HTTP routes for the API.
Package routes registers all HTTP routes for the API.
importer/defectdojo
Package defectdojo converts DefectDojo findings (from its /api/v2/findings/ REST endpoint) into a CTIS report, so DefectDojo can act as a 200+-parser ingestion front-end while OpenCTEM remains the system of record (RFC-013).
Package defectdojo converts DefectDojo findings (from its /api/v2/findings/ REST endpoint) into a CTIS report, so DefectDojo can act as a 200+-parser ingestion front-end while OpenCTEM remains the system of record (RFC-013).
jira
Package jira provides a REST API client for Jira Cloud/Server.
Package jira provides a REST API client for Jira Cloud/Server.
jobs
Package jobs provides background job definitions and handlers using Asynq.
Package jobs provides background job definitions and handlers using Asynq.
llm
Package llm provides abstractions for Large Language Model providers.
Package llm provides abstractions for Large Language Model providers.
notifier
Package notifier provides clients for sending notifications to various providers.
Package notifier provides clients for sending notifications to various providers.
postgres
Package postgres provides PostgreSQL repository implementations for the domain interfaces in pkg/domain/.
Package postgres provides PostgreSQL repository implementations for the domain interfaces in pkg/domain/.
redis
Package redis provides production-ready Redis integration for the OpenCTEM application.
Package redis provides production-ready Redis integration for the OpenCTEM application.
scanner/nessus
Package nessus converts Tenable Nessus / Tenable.sc ".nessus" XML exports into a CTIS report so vulnerability results can flow through the standard ingest pipeline (dedup, correlation, idempotency, scoped auto-resolve).
Package nessus converts Tenable Nessus / Tenable.sc ".nessus" XML exports into a CTIS report so vulnerability results can flow through the standard ingest pipeline (dedup, correlation, idempotency, scoped auto-resolve).
scm
Package scm provides client implementations for various SCM (Source Code Management) providers
Package scm provides client implementations for various SCM (Source Code Management) providers
storage
Package storage provides FileStorage implementations.
Package storage provides FileStorage implementations.
telemetry
Package telemetry exposes Prometheus metrics for every CTEM stage so the loop-closure SLOs in have real numbers to alert on.
Package telemetry exposes Prometheus metrics for every CTEM stage so the loop-closure SLOs in have real numbers to alert on.
websocket
Package websocket provides WebSocket infrastructure for real-time communication.
Package websocket provides WebSocket infrastructure for real-time communication.
Package metrics
Package metrics

Jump to

Keyboard shortcuts

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