Customizable Security Policies
Socket has introduced three new customizable default security policies to provide greater flexibility in managing dependency security: Low Noise, Default, and Higher Noise.
These policies leverage Socket's four alert actionsβBlock, Warn, Monitor, and Ignoreβallowing teams to tailor their security measures according to their specific needs.
New Security Policies
1. Low Noise (Traditional SCA)
- Focus: CVEs and malicious dependencies.
- Actions:
- Block known malicious dependencies.
- Warn developers about critical CVEs.
- Monitor all other CVEs.
2. Default (Recommended for Most Teams)
- Focus: Balances robust security with minimized disruption.
- Actions:
- Block known malicious dependencies.
- Warn for critical CVEs, potential typosquats, and protestware.
- Monitor a wider range of potential issues.
3. Higher Noise (For More Engaged Teams)
- Focus: Designed for teams with active security vetting.
- Actions:
- Block dependencies with critical CVEs or malicious intent.
- Warn developers for a wider range of potential issues.
- Monitor extensive quality and maintenance issues.
Policy Configurations
- Inherit: Adopts actions specified in the chosen policy (Low Noise, Default, Higher Noise), allowing for automatic updates with policy changes.
- Explicit Setting: Remains constant regardless of policy changes, offering tailored customization.
Detailed Breakdown of Default Alert Actions
The table below outlines the alert types and their corresponding actions under each security policy:
Alert Type | Low Noise (SCA) | Default | Higher Noise |
---|---|---|---|
Known Malware | π« | π« | π« |
Critical CVE | β | β | π« |
Git Dependency | β | β | π« |
GitHub Dependency | β | β | π« |
HTTP Dependency | β | β | π« |
High CVE | ποΈ | ποΈ | β |
Possible Typosquat Attack | β | β | β |
AI-Detected Potential Malware | β | ποΈ | β |
Protestware/Troll Package | β | β | β |
Telemetry | β | ποΈ | β |
Unpublished Package | β | ποΈ | β |
Unstable Ownership | β | ποΈ | β |
Unpopular Package | β | ποΈ | β |
Deprecated | β | ποΈ | β |
Obfuscated File | β | β | β |
Shrinkwrap | β | ποΈ | β |
Medium CVE | ποΈ | ποΈ | ποΈ |
Low CVE | ποΈ | ποΈ | ποΈ |
Install Scripts | β | β | ποΈ |
Unmaintained | β | β | ποΈ |
Potential Vulnerability | β | β | ποΈ |
Alert Actions
Alert Action | Shows up in Dashboard | Developers see it (e.g., GitHub comment, CLI prints a warning) | Developers blocked (GitHub PR fails, CLI errors) |
---|---|---|---|
Block π« | β | β | β |
Warn β | β | β | β |
Monitor ποΈ | β | β | β |
Ignore β | β | β | β |
Legend
- Block π«: This action will fail the Socket CI/CD check, preventing the merge or deployment process until the issue is resolved. All related alerts will appear in the dashboard, developers will be notified, and further actions will be blocked.
- Warn β: This action indicates a potential issue that should be reviewed. It will appear in the dashboard and notify developers through comments or warnings, but it will not block the development process.
- Monitor ποΈ: This action is used for tracking alerts that require monitoring over time. Alerts will be visible in the dashboard, but no notifications will be sent to developers, and it won't block any processes.
- Ignore β: This action is set for low-priority alerts or informational notifications. The alerts will not show up in the dashboard, and there will be no notifications or blocks applied.
Note: all other of our supported alert types are set to be ignored in the three new policies and will have to be enabled explicitly.
Changes in the New Default Policy
- CVE Handling: Increased visibility for critical to low CVEs.
- Supply Chain Risks: Adjusted alert actions to minimize unnecessary disruptions.
- Quality and Maintenance: Expanded monitoring for potential issues like deprecated or unmaintained packages.
Action Steps for Organizations
- Review Changes: Understand how the new default policy affects your organization.
- Lock In Preferences: Set explicit actions for critical alerts to maintain current settings.
- Switch Between Policies: Choose between Low Noise, Default, or Higher Noise based on your teamβs needs.
Transition to New Policies
- Transition Period (August 14 - August 28, 2024): Organizations can review changes and lock in existing settings if needed.
- New Policies Take Effect (August 28, 2024): Automatic update to the new default policy, with options to switch between the three new policies.
Socketβs update is designed to enhance security measures while providing flexibility and reducing alert fatigue. If you have any questions or need assistance, please reach out to Socket support.
For more detailed information on the Socket API and alert actions, visit the Socket Documentation.
Updated 3 months ago