az9713/atlas-agent-tutorial/security-hardening

Claude Code and agent skill by az9713/atlas-agent-tutorial

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Harden an application or service against common attack vectors. Use when asked to improve security posture, secure an API, harden a server, or prepare for a security review.

Install

npx vskill@latest install az9713/atlas-agent-tutorial/security-hardening

SKILL.md

The same SKILL.md was published earlier as agulli/atlas-agents/security-hardening.

Overview

Security hardening is not about chasing perfect — it's about raising the cost of attack above the attacker's budget. Work systematically through the layers.

Process

Layer 1: Authentication and Authorization
  1. Verify all endpoints require authentication. Check for unprotected routes using:

``bash grep -rn "route\|@app\.\|router\." src/ | grep -v "login\|health\|docs" ``

  1. Check that authorization is enforced at the data layer, not just the route layer. A user who can reach /orders should only see their orders.
  2. Confirm tokens expire. JWTs must have exp claims. Sessions must have server-side expiry.
Layer 2: Input Validation
  1. Every user-supplied value that touches a database must use parameterized queries. Grep for f-string SQL:

``bash grep -rn "f\"SELECT\|f'SELECT\|format.*SELECT" src/ ``

  1. Every file path from user input must be validated against an allowlist or a sandboxed directory. Check for os.path.join(base, user_input) without os.path.abspath + startswith guard.
Layer 3: Secrets and Configuration
  1. Scan for hardcoded secrets:

``bash grep -rn "password\s*=\s*[\"'][^\"']\|api_key\s*=\s*[\"'][^\"']" src/ ``

  1. Confirm all secrets come from environment variables or a secrets manager, not from config files committed to version control.
  2. Check .gitignore includes .env, *.key, *.pem.
Layer 4: Dependencies and Infrastructure
  1. Run the dependency-audit skill to check for vulnerable packages.
  2. Check HTTP security headers are set (for web services):
  • Content-Security-Policy
  • X-Frame-Options: DENY
  • Strict-Transport-Security
  • X-Content-Type-Options: nosniff
Layer 5: Output
  1. Write findings as a prioritized list: Critical → High → Medium → Low. For each finding: what it is, where it is (file:line), how to fix it.

Rationalizations

ExcuseRebuttal
"This is an internal service, it doesn't need hardening"Internal services are the primary target of lateral movement attacks after initial breach.
"We'll harden it before the public launch"Security debt compounds. Fix it before it goes anywhere.
"The framework handles security"Frameworks handle some things. You must handle the application-level concerns.

Verification

  • [ ] All four layers were checked (not just the ones that seemed relevant)
  • [ ] No hardcoded secrets found in source or git history
  • [ ] Every critical and high finding has a specific remediation
  • [ ] A finding was produced for each layer — even if it's "no issues found"

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/az9713/atlas-agent-tutorial/security-hardening/badge)](https://verified-skill.com/skills/az9713/atlas-agent-tutorial/security-hardening)

Something wrong with this skill or its page? Tell us.