agentleFS
Microsoft AzureKnown publisherAzure/vscode-aks-tools/skills/kickstart-security-hardening/SKILL.md

kickstart-security-hardening

Skill65 starsChanged 3 months agoMITView on GitHub

Azure security baseline — RBAC, Key Vault, managed identity, network isolation, and Microsoft Defender.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use built-in roles before creating custom ones.

    line 12
  2. Very specific:

    Avoid Owner on production subscriptions — use Contributor + specific data-plane roles.

    line 14
  3. Distinctive:

    Use Managed Identity (not service principal secrets) to read secrets.

    line 20
  4. Distinctive:

    Use private endpoints for Storage, Key Vault, SQL, ACR.

    line 34

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

Security Hardening

Principle of least privilege

  • Assign RBAC at the narrowest scope (resource > resource group > subscription > management group).
  • Use built-in roles before creating custom ones.
  • Common roles: Reader, Contributor, Owner, Key Vault Secrets User, Storage Blob Data Reader.
  • Avoid Owner on production subscriptions — use Contributor + specific data-plane roles.

Key Vault best practices

  • Soft delete + purge protection: always on in production.
  • Restrict access with Key Vault Firewall + private endpoint.
  • Use Managed Identity (not service principal secrets) to read secrets.
  • Rotate secrets every 90 days; use Key Vault references in App Service / AKS.
  • Audit access with diagnostic settings → Log Analytics.

Encryption

  • Storage at rest: enabled by default (AES-256, Microsoft-managed keys).
  • Customer-managed keys (CMK) in Key Vault for compliance requirements.
  • TLS 1.2+ everywhere; disable older protocols.
  • Encryption in transit: HTTPS-only for storage, SQL, App Service.

Network isolation

  • Disable public network access on PaaS services when possible.
  • Use private endpoints for Storage, Key Vault, SQL, ACR.
  • Apply NSGs with default-deny inbound.

Microsoft Defender for Cloud

Enable Defender plans for:

  • Servers (VM vulnerability scanning)
  • Containers (AKS runtime threat detection)
  • Storage (malware scanning, anomaly detection)
  • Key Vault (unusual access patterns)
  • SQL (SQL injection detection)

Secure Score is your KPI — target 80%+.

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.