agentleFS
MicrosoftKnown publishermicrosoft/haste/.github/skills/security-analysis/SKILL.md

security-analysis

Skill106 starsChanged 7 months agoMITView on GitHub

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'.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

Security Analysis

Overview

Structured process for triaging Dependabot alerts, grouping related vulnerabilities, applying severity rules, and producing actionable reports for HASTE's Python and JavaScript dependency stacks.

Key Concepts

HASTE Dependency Landscape

StackLocationToolKey Risks
Python (API)api/hastefuncapi/requirements.txtpip auditGDAL parsing, Azure SDK, rasterio
Python (Queues)api/hastefuncqueues/requirements.txtpip auditSame as API
Python (Core)hastelib/pyproject.tomlpip auditGeospatial libs, ML deps
JavaScript (UI)ui/package.jsonnpm auditFluentUI, MSAL, build tools
JavaScript (Root)package.jsonnpm auditAzurite (dev only)

Severity Rules

SeverityActionSLA
CriticalInvestigate immediately, create issueSame day
HighInvestigate promptly, create issue3 business days
MediumQueue for next sprintNext sprint
LowDocument and trackBacklog

Patterns & Techniques

Alert Triage Process

Step 1: Gather alerts

# Python
pip audit --format json

# JavaScript
npm audit --json

Step 2: Group related vulnerabilities

  • Same package, different CVEs → group together
  • Same dependency chain → note the root cause package
  • Transitive vs direct dependency → prioritize direct

Step 3: Assess HASTE impact For each vulnerability, determine:

  • Is the vulnerable code path reachable in HASTE?
  • What data is at risk? (imagery, project metadata, user data)
  • Is this in a production path or dev-only dependency?
  • Can the vulnerability be exploited through HASTE's public interfaces?

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]

HASTE-Specific Risk Areas

AreaWhy It Matters
GDAL/rasterioFile parsing vulnerabilities — common attack vector for malicious GeoTIFFs
Azure SDKsAuth and credential handling — high-value targets
MSALToken handling and auth bypass — directly affects user security
boto3AWS S3 access for imagery sources — credential exposure risk
opencv-pythonImage processing vulnerabilities — similar to GDAL risks

Decision Framework

ScenarioAction
Critical CVE in production dependencyImmediate triage, create issue, recommend upgrade
High CVE in production dependencyInvestigate within 3 days, create issue
Any CVE in dev-only dependency (azurite, vite, eslint)Document, lower priority
Upgrade introduces breaking changesDocument migration steps, flag for planning
No fix availableDocument workaround or risk acceptance rationale

Common Pitfalls

  • Treating all alerts equally — Production critical > production high > dev-only
  • Ignoring transitive dependencies — A safe direct dep can pull in vulnerable packages
  • Auto-upgrading without testing — Always run hatch run test:pytest after upgrades
  • Assuming dev-only deps are safe — Supply chain attacks can target build tools

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.