Skip to content

[Initiative]: Evaluate AI-generated threat model drafts as a starting point for security self-assessments #2280

Description

@realshuting

Name

Generated threat-model drafts for security self-assessments

Short description

Evaluate whether AI-generated threat model drafts (alpha-omega-security/threat-model) improve the quality and consistency of project security self-assessments, and whether to recommend the approach in the self-assessment guide.

Responsible group

TAG Security and Compliance

Does the initiative belong to a subproject?

Yes

Subproject name

security-assessments

Primary contact

@realshuting (Shuting Zhao)

Additional contacts

@JustinCappos, @Santoshkumarpuppala

Initiative description

Security self-assessments submitted by projects are uneven in quality. The TAG self-assessment template defines what sections to write, but not how to write them well, and projects without security expertise often struggle to fill it in.

The agent skills at alpha-omega-security/threat-model generate a draft threat model / security contract from a project's code and docs. Compared to writing from a blank template, the approach adds:

  • Draft content generated from the code, so maintainers correct a draft instead of authoring from scratch
  • Every claim tagged with an evidence level (documented / maintainer-confirmed / inferred), giving reviewers a ready-made list of what to challenge
  • Coverage stated as a count (e.g. "38 of 97 entry points covered"), so uncovered areas are visible instead of silent
  • Explicitly disclaimed guarantees listed as a first-class section, instead of simply being absent

Known gap: the tool does not identify, for each claimed security guarantee, the code that actually rejects a violating request. That still needs a maintainer who knows the codebase. Example: the authorization discussion on #2264 (Meshery self-assessment), where the assessment stated authorization "is enforced" but the enforcement code had to be located by the maintainers during review. Any recommendation of the tool should pair the generated draft with one line per guarantee from the maintainers: the code that refuses a violating request, and what the refusal looks like.

Scope:

  1. Collect experience from recent assessment reviews (kcp, Meshery, Higress)
  2. Trial the generated-draft approach with 1-2 projects that are starting or stalled on their self-assessment
  3. Decide whether to recommend the tool in the self-assessment guide as an optional starting point
  4. Independently of the tool, consider adding its quality properties (evidence tags, coverage count, enforcement point per guarantee) to the self-assessment guide and reviewer guidance

Timeline: evaluation over the next 2-3 months, aligned with in-flight assessment reviews.

Origin: Slack discussion.

Deliverable(s) or exit criteria

  • Written summary of the trial results: what the generated drafts got right, and what reviewers/maintainers still had to add
  • Recorded decision: recommend / do not recommend the tool in the self-assessment guide
  • If recommended: PR to the self-assessment guide adding it as an optional starting point, including the required maintainer additions (enforcement point per guarantee)
  • If the quality properties prove useful independently of the tool: PR updating the self-assessment guide and reviewer guidance with them

Tracking document for meeting and progress

https://notes.cncf.io/PxSKxLceQyKwMfbZJFdvRg?both

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/initiativeAn initiative or an item related to imitative processesneeds-triageIndicates an issue or PR that has not been triaged yet (has a 'triage/foo' label applied)tag/security-and-complianceTAG Security and Compliance

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions