Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .agent-guidance/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,15 @@ Before changing a product or supporting component:
guides explain boundaries but do not replace current code or stricter local
instructions.
4. If a request crosses a frontend, web backend, core, deployment repository,
shared package, or data generator, trace and validate the complete affected
path rather than treating the first repository encountered as the whole
product.
shared package, data generator, browser extension, or external integration,
trace and validate the complete affected path rather than treating the first
repository encountered as the whole product.

Every public product API has a production OpenCTI connector, and Stixify also
has a production Chrome extension. Before changing an API route, authentication
header, pagination shape, response field, object schema, or rate/quota behavior,
read [the external API consumer matrix](docs/components/external-api-consumers.md)
and validate every affected consumer contract.

The common platform architecture is documented in
[docs/platform/architecture.md](docs/platform/architecture.md), and the current
Expand Down
2 changes: 1 addition & 1 deletion .agent-guidance/UPSTREAM.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Shared guidance upstream

- Repository: https://github.com/muchdogesec/agent-guidance
- Pinned commit: `e24fce9205a35594ba4e29840d528b0f96f942ff`
- Pinned commit: `5d9af05a2df375f729ff028fc2dd7dcbfbde4680`
- Vendored bootstrap: `.agent-guidance/AGENTS.md`
- Vendored product/platform guidance: `.agent-guidance/docs/`

Expand Down
15 changes: 14 additions & 1 deletion .agent-guidance/docs/components/dependency-classification.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,17 @@ repository, but it is not an application runtime package.
The five deployment repositories are likewise production-critical control
planes rather than libraries.

## Production API consumers and integrations

The five DOGESEC OpenCTI connectors and the Stixify Chrome extension are
production-critical downstream consumers. They do not execute in the product
Compose stacks and therefore do not appear in product `requirements.txt`
files, but their compatibility is part of the supported public API contract.

An API change is incomplete until affected downstream clients have been traced,
tested, and either proven compatible or released in a coordinated migration.
See [external API consumers](external-api-consumers.md).

## Adjacent and standalone repositories

A repository that is absent from the dependency declarations, production
Expand All @@ -64,7 +75,9 @@ tool, an adjacent product, a website, a demo, a dataset, an experiment, or a
legacy repository.

Examples include unrelated `*2stix` converters, demos, marketing websites,
sample feeds, media repositories, and tools for other DOGESEC products. Do not
sample feeds, media repositories, and tools for other DOGESEC products. The
OpenCTI connectors and Stixify Chrome extension are explicit exceptions because
their production dependency is contractual rather than a package import. Do not
delete, deprecate, or label one experimental solely because it is absent here;
that requires a repository-specific review. The default classification only
means it is outside the critical runtime and production-data path of these five
Expand Down
75 changes: 75 additions & 0 deletions .agent-guidance/docs/components/external-api-consumers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# External API consumers and integrations

These clients depend on public DOGESEC product APIs but run outside the product
production Compose stacks. Treat them as production-critical compatibility
surfaces whenever an API, authentication, pagination, schema, quota, or URL
contract changes.

## OpenCTI connectors

The authoritative connector implementations are in the upstream
`OpenCTI-Platform/connectors` repository under `external-import/`. The five
DOGESEC connectors were migrated to the OpenCTI catalog on 2026-11-24. The old
local `muchdogesec/opencti-connectors` fork is not the authoritative remote.
`opencti-deploy` contains local deployment examples and operator notes; it is a
consumer/deployment aid, not the connector source of truth.

All five connectors authenticate to the DOGESEC product with the `API-KEY`
header and send retrieved STIX bundles into the customer's OpenCTI instance.

| Product | Connector directory | Product API contracts directly consumed |
| --- | --- | --- |
| Obstracts | `external-import/dogesec-obstracts` | `GET /v1/feeds/`; `GET /v1/feeds/{feed_id}/posts/`; `GET /v1/feeds/{feed_id}/posts/{post_id}/objects/` |
| Stixify | `external-import/dogesec-stixify` | `GET /v1/dossiers/`; `GET /v1/dossiers/{dossier_id}/reports/`; `GET /v1/reports/{report_id}/objects/` |
| Vulmatch | `external-import/dogesec-vulmatch` | `GET /v1/sbom/`; `GET /v1/cve/objects/`; `GET /v1/cve/objects/{cve_name}/bundle/` |
| CTI Butler | `external-import/dogesec-ctibutler` | `GET /v1/{knowledge_base}/versions/installed/`; `GET /v1/{knowledge_base}/objects/`; `GET /v1/{knowledge_base}/objects/{object_id}/bundle/` |
| Cyber Threat Exchange | `external-import/dogesec-cyberthreatexchange` | `GET /v1/subscriptions/`; `GET /v1/feeds/{feed_id}/objects/` |

The clients also depend on response pagination and state semantics, including
`results` or `objects` list keys, absolute or cursor-based `next` values,
timestamps/cursors, stable object identifiers, and valid STIX 2.1 bundles.
Field-level behavior must be confirmed from current connector code and product
schema tests before a change; this table is a routing index, not a substitute
for source inspection.

## Stixify Chrome extension

`stixify_chrome_extension` is a first-class Stixify client. It:

1. captures a browser page as MHTML;
2. reads a user-supplied Stixify API endpoint and API key from Chrome sync
storage;
3. calls `GET /v1/team/` to identify team/plan context;
4. submits multipart content to `POST /v1/reports/` using `API-KEY`;
5. polls `GET /v1/jobs/{job_id}/`; and
6. constructs hosted application links from the API hostname plus returned
team, report, and job identifiers.

Changes to upload field names, accepted content types, quota responses, job
states, job/report identifiers, team payloads, CORS, API/app host conventions,
or API-key handling can break the extension even when product API tests pass.

## Compatibility and release gate

For a potentially breaking product API change:

1. Identify every route, header, field, pagination rule, STIX object, and error
behavior used by the corresponding OpenCTI connector and, for Stixify, the
Chrome extension.
2. Prefer additive changes and preserve the existing contract through a
documented deprecation window. Never combine removal and consumer migration
in an uncoordinated production release.
3. Add or update product-side contract tests using representative connector or
extension requests and responses.
4. Run the affected connector's tests/build against the candidate product API.
For Stixify, also run the extension lint/build and an end-to-end submission
and job-polling smoke test against an ephemeral isolated environment.
5. Release consumers before or with the server change when compatibility cannot
be preserved. Keep the server backward compatible until supported consumer
versions have had a reasonable migration window.
6. After production deployment, verify a bounded API call and successful
downstream ingestion/submission using the agent-owned account. Do not use
customer credentials or data.

An API release is not complete while an affected connector or extension is
untested, known incompatible, or undocumented.
7 changes: 6 additions & 1 deletion .agent-guidance/docs/maintenance.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,16 @@ unavoidable human-only action.
build/deploy guide before deployment.
- Quarterly: perform an end-to-end architecture review across all five products,
including public websites, core/backend/frontend/deploy repositories, shared
package versions, external data generators, backups, and rollback paths.
package versions, external data generators, OpenCTI connectors, browser
extensions, backups, and rollback paths.
- Immediately: update guidance after a repository rename, new service,
replacement dependency, authentication/billing model change, new public
surface, or production topology change.

For every public API change, inspect the external-consumer matrix and update its
route/schema evidence. Connector and extension compatibility is a release gate,
not a documentation follow-up.

Updating the review date without inspecting the current code is not a review.

## Evidence standard
Expand Down
3 changes: 3 additions & 0 deletions .agent-guidance/docs/products/ctibutler.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,6 @@ across REST/MCP/TAXII/STIX/Navigator.
`web_commons`, and `arango_taxii_server`.

Public positioning is maintained in `ctibutler-website`.

The `dogesec-ctibutler` OpenCTI connector is a production-critical downstream
API consumer. See [external API consumers](../components/external-api-consumers.md).
4 changes: 4 additions & 0 deletions .agent-guidance/docs/products/cyberthreatexchange.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,7 @@ upload-size enforcement, and REST/MCP/TAXII consistency.
`web_commons`, and `arango_taxii_server`.

Public positioning is maintained in `cyberthreatexchange-website`.

The `dogesec-cyberthreatexchange` OpenCTI connector is a production-critical
downstream API consumer. See
[external API consumers](../components/external-api-consumers.md).
3 changes: 3 additions & 0 deletions .agent-guidance/docs/products/obstracts.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,6 @@ ArangoDB, worker, and seed feed.
`web_commons`, `arango_taxii_server`, `ctibutler`, and `vulmatch`.

Public positioning is maintained in `obstracts-website`.

The `dogesec-obstracts` OpenCTI connector is a production-critical downstream
API consumer. See [external API consumers](../components/external-api-consumers.md).
12 changes: 11 additions & 1 deletion .agent-guidance/docs/products/stixify.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ security engineers, and service providers processing large volumes of reports.
| `stixify_web_be` | Hosted users/teams/plans, uploads/reports/dossiers presentation and proxy endpoints, MCP/TAXII, schemas and sitemaps |
| `stixify_web_fe` | Upload, report, dossier, topic, observable/TTP and staff workflows |
| `stixify_web_deploy` | Production services, upload limits, Nginx routes, backups and deployment |
| `stixify_chrome_extension` | Captures webpages as MHTML, submits them to the public API, tracks jobs, and opens hosted results |

## Processing path

Expand All @@ -45,6 +46,8 @@ during extraction.
- Hosted dossiers, team access, subscriptions, MCP/TAXII and proxy behavior:
`stixify_web_be` and possibly `web_commons`.
- Browser workflows: `stixify_web_fe`.
- Webpage capture, API submission, job polling, and extension storage/UI:
`stixify_chrome_extension`.
- Payload limits, routes, containers, backups: `stixify_web_deploy`.

## Important code surfaces
Expand All @@ -63,11 +66,18 @@ during extraction.

Test each supported input mode, cleanup after failed/terminated jobs, reprocessing,
profile compatibility, media/R2 behavior, team isolation, report/dossier access,
STIX graph persistence, upload limits, and REST/MCP/TAXII contract parity.
STIX graph persistence, upload limits, and REST/MCP/TAXII contract parity. API
changes affecting `/v1/team/`, `/v1/reports/`, or `/v1/jobs/{id}/`, the
`API-KEY` header, upload fields, job/report identifiers, or app URL construction
must also build and exercise the Chrome extension.

## Supporting repositories

`file2txt`, `txt2stix`, `dogesec_commons`, `stix2arango`, `web_commons`,
`arango_taxii_server`, `ctibutler`, and `vulmatch`.

Downstream compatibility consumers are `stixify_chrome_extension` and the
`dogesec-stixify` OpenCTI connector. See
[external API consumers](../components/external-api-consumers.md).

Public positioning is maintained in `stixify-website`.
3 changes: 3 additions & 0 deletions .agent-guidance/docs/products/vulmatch.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,6 @@ indexes, REST/MCP/TAXII parity, and initial-backfill/rebuild behavior.
`stix2arango`, `web_commons`, `arango_taxii_server`, and `ctibutler`.

Public positioning is maintained in `vulmatch-website`.

The `dogesec-vulmatch` OpenCTI connector is a production-critical downstream
API consumer. See [external API consumers](../components/external-api-consumers.md).
14 changes: 14 additions & 0 deletions .agent-guidance/docs/repository-map.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ and shared/supporting components.
| `stixify_web_be` | Stixify | Commercial web control plane, proxy API, MCP/TAXII, teams and subscriptions | [Stixify](products/stixify.md) |
| `stixify_web_fe` | Stixify | Customer/staff Next.js interface | [Stixify](products/stixify.md) |
| `stixify_web_deploy` | Stixify | Production Compose, Nginx routing, deployment and backup workflows | [Stixify](products/stixify.md) |
| `stixify_chrome_extension` | Stixify | Chrome extension that submits webpages through the public API and tracks processing jobs | [Stixify](products/stixify.md) |
| `vulmatch` | Vulmatch | CVE/CPE ingestion, enrichment, graph storage, and public core API | [Vulmatch](products/vulmatch.md) |
| `vulmatch_web_be` | Vulmatch | Commercial web control plane, proxy API, MCP/TAXII, teams and subscriptions | [Vulmatch](products/vulmatch.md) |
| `vulmatch_web_fe` | Vulmatch | Customer Next.js interface | [Vulmatch](products/vulmatch.md) |
Expand Down Expand Up @@ -63,6 +64,19 @@ the evidence-based criticality model.
| `feeds2stix` | Convert public feeds to STIX and publish them through scheduled workflows | Cyber Threat Exchange supply |
| `stixviewer` | Render STIX graphs and objects in browser workflows | Product frontends |

## Downstream API consumers

All five products have OpenCTI external-import connectors maintained in the
upstream `OpenCTI-Platform/connectors` repository. `opencti-deploy` provides
DOGESEC-oriented local OpenCTI deployment examples. Stixify additionally has
the `stixify_chrome_extension` client.

These are production-critical compatibility consumers: they are not services
inside a product's production Compose stack, but public API changes can break
customer ingestion or browser workflows. See the
[external API consumer matrix](components/external-api-consumers.md) for exact
routes, ownership, and release gates.

## Adjacent repositories

The five `*-website` repositories are public marketing/documentation sites, not
Expand Down
Loading