Skip to content

detect: recognise DISCLOSURE as a security resource - #119

Merged
andrew merged 1 commit into
mainfrom
disclosure-resource
Jul 29, 2026
Merged

detect: recognise DISCLOSURE as a security resource#119
andrew merged 1 commit into
mainfrom
disclosure-resource

Conversation

@andrew

@andrew andrew commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

npm's dual-use content policy requires a DISCLOSURE file at the package root describing security-relevant capabilities, sitting alongside LICENSE. Report it under resources.security.disclosure alongside policy, threat_model and audit.

Announcement: https://github.blog/changelog/2026-07-28-npm-publish-time-malware-scanning-and-dual-use-metadata/
Policy: https://docs.npmjs.com/policies/dual-use

npm's dual-use content policy requires a DISCLOSURE file at the package
root describing security-relevant capabilities. Report it under
resources.security.disclosure alongside SECURITY and THREAT_MODEL.

https://docs.npmjs.com/policies/dual-use

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends Brief’s resource detection knowledge base to recognize an npm dual-use DISCLOSURE file (at the package root) as a security-related resource, and verifies the resulting resources.security.disclosure output in detection tests.

Changes:

  • Add a new security resource definition for Disclosure with field = "disclosure" and root-level filename patterns.
  • Extend TestResourceGroups to ensure a root DISCLOSURE file is detected and reported under resources.security.disclosure.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
knowledge/_shared/_resources.toml Adds a new security resource definition for disclosure with filename patterns.
detect/detect_test.go Adds coverage asserting DISCLOSURE is reported as resources.security.disclosure.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@andrew
andrew merged commit a7c59e0 into main Jul 29, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants