microsoft/security-analysis
Dependabot and security analysis skill for HASTE. Parse alerts, group related vulnerabilities, apply severity rules, and produce structured reports. Use when: 'Dependabot alert', 'security scan', 'vulnerability triage', 'dependency audit', 'npm audit', 'pip audit', 'CVE analysis'.
npx skills add https://github.com/microsoft/haste --skill security-analysis
Structured process for triaging Dependabot alerts, grouping related vulnerabilities, applying severity rules, and producing actionable reports for HASTE's Python and JavaScript dependency stacks.
| Stack | Location | Tool | Key Risks |
|-------|----------|------|-----------|
| Python (API) | api/hastefuncapi/requirements.txt | pip audit | GDAL parsing, Azure SDK, rasterio |
| Python (Queues) | api/hastefuncqueues/requirements.txt | pip audit | Same as API |
| Python (Core) | hastelib/pyproject.toml | pip audit | Geospatial libs, ML deps |
| JavaScript (UI) | ui/package.json | npm audit | FluentUI, MSAL, build tools |
| JavaScript (Root) | package.json | npm audit | Azurite (dev only) |
| Severity | Action | SLA |
|----------|--------|-----|
| Critical | Investigate immediately, create issue | Same day |
| High | Investigate promptly, create issue | 3 business days |
| Medium | Queue for next sprint | Next sprint |
| Low | Document and track | Backlog |
Step 1: Gather alerts
# Python
pip audit --format json
# JavaScript
npm audit --json
Step 2: Group related vulnerabilities
Step 3: Assess HASTE impact
For each vulnerability, determine:
Step 4: Produce report
## Security Triage Report — [Date]
### Critical/High Findings
| Package | CVE | Severity | Component | Reachable? | Action |
|---------|-----|----------|-----------|------------|--------|
### Medium/Low Findings
| Package | CVE | Severity | Component | Action |
|---------|-----|----------|-----------|--------|
### Dependencies to Watch
[Packages with recent churn, new maintainers, or declining activity]
| Area | Why It Matters |
|------|---------------|
| GDAL/rasterio | File parsing vulnerabilities — common attack vector for malicious GeoTIFFs |
| Azure SDKs | Auth and credential handling — high-value targets |
| MSAL | Token handling and auth bypass — directly affects user security |
| boto3 | AWS S3 access for imagery sources — credential exposure risk |
| opencv-python | Image processing vulnerabilities — similar to GDAL risks |
| Scenario | Action |
|----------|--------|
| Critical CVE in production dependency | Immediate triage, create issue, recommend upgrade |
| High CVE in production dependency | Investigate within 3 days, create issue |
| Any CVE in dev-only dependency (azurite, vite, eslint) | Document, lower priority |
| Upgrade introduces breaking changes | Document migration steps, flag for planning |
| No fix available | Document workaround or risk acceptance rationale |
hatch run test:pytest after upgradesTake microsoft/security-analysis from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.