foundry-security-spec icon indicating copy to clipboard operation
foundry-security-spec copied to clipboard

docs: worked example for an alternative rule format under the §5.4 clarification

Open eeee2345 opened this issue 6 months ago • 0 comments

The §5.4 rule-corpus clarification (spec.md line 450) invites adopters to use the seed's CodeGuard worked example, fork it, or substitute another format that satisfies FR-037 and FR-041. The current docs ship one worked example (example-detection-rule.md, CodeGuard, source-function units). Adopters whose targets are agentic-system artifacts — MCP servers, skill files, tool manifests, IO traces — lack a sibling worked example for the case where the unit being checked is not a source function.

This PR adds one such sibling. It walks an alternative open rule format (Agent Threat Rules, MIT-licensed, github.com/Agent-Threat-Rule/agent-threat-rules) and maps a sample rule to the same Detector FRs the CodeGuard worked example covers (FR-037, FR-041, FR-042, FR-043, FR-044, FR-045, FR-090, US-14). The framing is non-exclusive throughout: ATR is one example of a format that satisfies the §5.4 contract, not a recommendation against CodeGuard, and the docs note mixed corpora are valid.

Why this fits the docs conventions:

  • Cites the spec; restates nothing normatively (per docs/README.md).
  • Marks audience at top (operator answering the §5.4 clarification).
  • Provides options and decision criteria, not a mandate.
  • Adds no new requirements; the requirement is FR-041, which is format-independent.

Files:

  • docs/worked-examples/example-alternative-rule-format.md (new, 92 lines)
  • docs/README.md (5-line audience-map entry pointing at both worked examples)

Context: I authored the ATR rule corpus. ATR has been merged into Cisco AI Defense's skill-scanner via PRs #79 and #99. This PR is independent of that work and improves the spec for any adopter picking a format, not the ATR project specifically; I would be glad to revise framing or drop ATR-specific references if the maintainers prefer a generic "non-CodeGuard worked example" with a different reference format.

eeee2345 avatar May 16 '26 07:05 eeee2345