agentleFS
salmandevsalmandev/everything-gemini/skills/cve-remediation-orchestrator/SKILL.md

cve-remediation-orchestrator

Skill2 starsChanged 30 days agoApache-2.0View on GitHub

Orchestrates defense-in-depth vulnerability remediation, virtual patching, kernel hardening, and service restart verification for critical CVEs without relying on exploit tools. Use when mitigating zero-days, evaluating container runtime isolation, or applying emergency WAF/gateway filters.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Permanent Remediation: Verify vendor package upgrades and ensure web worker daemons (php-fpm, nginx, apache2) are restarted so no stale …

    line 17
  2. Very specific:

    Direct Invocation Protocol: Never run source venv/bin/activate on untrusted workspaces or external repos.

    line 46
  3. Very specific:

    Verify activation scripts contain no unquoted path expansions or command separators ($(), ;, &&):

    line 52
  4. Very specific:

    Runtime Upgrades: Ensure CPython is upgraded to patched releases: 3.10.16+, 3.11.11+, 3.12.8+, or 3.13.1+.

    line 56
  5. Very specific:

    Run zero-install remote header audit: everything-gemini phpcheck https://example.com.

    line 64
  6. Distinctive:

    Run the automated host hardening and CVE verification script:

    line 81

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

CVE Remediation & Hardening Orchestrator (cve-remediation-orchestrator)

An enterprise security skill that coordinates four-layer defensive mitigations for critical CVEs, neutralizing attack vectors at the architecture, kernel, and gateway levels without referencing or running exploit scripts.

Core Philosophy: Exploit-Agnostic Defense

Rather than tracking fragile or dangerous exploit PoCs, this skill enforces architectural invariants that render entire vulnerability classes inoperable:

  1. Virtual Patching: Block malformed stream headers and buffer boundary exploits at the API gateway or WAF before they reach the runtime.
  2. Kernel & Host Hardening: Enforce Full Address Space Layout Randomization (ASLR), Data Execution Prevention (DEP/NX), and strict Seccomp profiles to thwart memory exploitation primitives.
  3. Container Confinement: Apply read-only root filesystems and drop all Linux capabilities to prevent post-exploitation persistence.
  4. Permanent Remediation: Verify vendor package upgrades and ensure web worker daemons (php-fpm, nginx, apache2) are restarted so no stale vulnerable inodes remain mapped in RAM.

Defense-in-Depth Architecture

graph TD
    CVE[Critical CVE / Zero-Day Disclosed] --> L1[Layer 1: Virtual Patching]
    L1 --> L2[Layer 2: Kernel & ASLR Hardening]
    L2 --> L3[Layer 3: Container Least Privilege]
    L3 --> L4[Layer 4: Package Upgrade & Worker Restart]
    
    L1 -->|Gateway Regex / Header Filter| Drop1[Blocked at Perimeter]
    L2 -->|sysctl randomize_va_space=2| Drop2[Exploit Memory Layout Broken]
    L3 -->|readOnlyRootFilesystem| Drop3[Payload Write Denied]
    L4 -->|Clean Inodes in RAM| Secured[Verified Secure]

Key CVE Case Studies & Mitigation Playbooks (October 21–22)

1. Python CPython venv Command Injection (CVE-2024-9287)

  • Disclosed: October 22
  • Component: Standard library venv module and CLI activation scripts (bin/activate, activate.csh, activate.fish).
  • Root Cause: Virtual environment path names supplied during environment creation were not properly quoted, allowing command injection into activation scripts.
  • Attack Vector: Sourcing an attacker-controlled virtual environment (source venv/bin/activate) executes embedded shell commands with the user's privileges.
  • Defensive Mitigation:
    1. Direct Invocation Protocol: Never run source venv/bin/activate on untrusted workspaces or external repos. Instead, invoke the interpreter directly:
      ./venv/bin/python script.py
      As confirmed by the Python Software Foundation, direct execution is unaffected by CVE-2024-9287.
    2. Activation Script Sanitizer: Verify activation scripts contain no unquoted path expansions or command separators ($(), ;, &&):
      grep -E 'VIRTUAL_ENV=.*[`$;|&]' venv/bin/activate*
    3. Runtime Upgrades: Ensure CPython is upgraded to patched releases: 3.10.16+, 3.11.11+, 3.12.8+, or 3.13.1+.

2. PHP Core Remote Code Execution & Memory Exposure (PHP2Shell: CVE-2026-109618 / CVE-2026-109619)

  • Disclosed: October 21
  • Component: Stream handling and buffer boundary management.
  • Defensive Mitigation:
    • Run zero-install remote header audit: everything-gemini phpcheck https://example.com.
    • Audit local host and check for unlinked memory handles: everything-gemini phpcheck --server.
    • Restart daemon pools: sudo systemctl restart 'php*-fpm'.

3. Spring WebFlux Static Resource Authorization Bypass (CVE-2024-38821)

  • Disclosed: October 22
  • Component: Spring WebFlux with Spring Security authorization rules on static resources.
  • Defensive Mitigation:
    • Enforce perimeter path matching in Envoy AI Gateway or reverse proxy before hitting Spring WebFlux.
    • Upgrade Spring Security to patched releases (6.3.4+, 6.2.7+, 5.8.15+).

Automated Defense & Hardening Verification Script

Run the automated host hardening and CVE verification script:

# Terminal human report
bash skills/cve-remediation-orchestrator/scripts/verify-host-hardening.sh

# CI/CD JSON telemetry
bash skills/cve-remediation-orchestrator/scripts/verify-host-hardening.sh --json

Related Skills

  • phpcheck-server - Deep server and package backport auditor.
  • security-audit - General code, dependency, and vulnerability analysis.
  • envoy-ai-gateway - Production AI gateway routing, rate limiting, and virtual patching.

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.