docs(security): add SECURITY.md with threat model#6316
Merged
christian-bromann merged 1 commit intomainfrom Jun 24, 2025
Merged
docs(security): add SECURITY.md with threat model#6316christian-bromann merged 1 commit intomainfrom
christian-bromann merged 1 commit intomainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is the current behavior?
GitHub Issue Number: N/A
Currently, the Stencil project does not have a formal security policy or threat model documentation. Developers and security researchers lack clear guidance on:
What is the new behavior?
This PR adds a comprehensive
SECURITY.mdfile that includes:Security Reporting Policy: Clear instructions for reporting security vulnerabilities via email instead of public GitHub issues
Comprehensive Threat Model: Detailed analysis of 14 security threats across all Stencil components:
DREAD Risk Assessment: Each threat is scored using the DREAD methodology (Damage, Reproducibility, Exploitability, Affected Users, Discoverability) for prioritization
Detailed Attack Scenarios: Realistic examples of how each threat could be exploited
Concrete Code Examples: Vulnerable code patterns and attack payloads that developers can learn from
Mitigation Strategies: Specific recommendations for preventing and addressing each threat category
Real-world Impact: References to actual security incidents and statistics where applicable
The threat model identifies 6 Critical priority threats (40-50 DREAD points), 7 High priority threats (25-39 points), and 1 Medium priority threat (11-24 points).
Documentation
This PR is entirely documentation-focused, providing security guidance for the Stencil ecosystem.
Does this introduce a breaking change?
This is a documentation-only addition with no impact on existing code or functionality.
Testing
Document Review:
Content Validation:
Other information
Key Features of this Security Policy:
Notable Security Findings:
This security policy will serve as a foundation for ongoing security improvements and help establish Stencil as a security-conscious framework in the web components ecosystem.