vinayaklatthe/microsoft-security-skills/azure-app-service-security

Claude Code and agent skill by vinayaklatthe/microsoft-security-skills

Trust tier 2
  • community
  • ext:[{"type":"plugin","description":"Custom plugin integration"}]
LLM review pending
Source check pending

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

Guidance for securing Azure App Service web apps and APIs — managed identity, Easy Auth with Microsoft Entra ID, network isolation via private endpoints + VNet integration, HTTPS / TLS hardening, Key Vault references for secrets, and front-end WAF (Front Door / App Gateway). WHEN: App Service security, secure web app on Azure, Easy Auth, App Service managed identity, private endpoint web app, VNet integration, App Service TLS, Key Vault references, harden App Service, FTP disable, WAF in front…

Install

npx vskill@latest install vinayaklatthe/microsoft-security-skills/azure-app-service-security

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as vinayaklatthe/microsoft-security-skills/azure-app-service-security.

Azure App Service Security

Azure App Service hosts web apps and APIs as a managed PaaS. Securing it means eliminating secrets in config, removing public exposure where possible, enforcing modern transport, and fronting it with a WAF when it has to be public.

When to use

Hardening web apps and APIs hosted on Azure App Service. Use this skill to plan identity, network, secrets, and transport posture for a Web App / API App.

Do not use this skill for Azure Functions only (similar but separate platform), AKS workloads, or VM-hosted web apps.

Pick the configuration by exposure pattern

ExposureInboundOutboundFront-end
Internal-only app (intranet, API for VNet workloads)Private endpoint, public access disabledVNet integration to spokeInternal Application Gateway
Public web app, sensitive dataPublic + access restrictions to WAF onlyVNet integrationFront Door or App Gateway with WAF, Prevention mode
Public web app, basicPublic, defaultNone / VNet integrationApp Gateway with WAF
API consumed by partnersPrivate endpoint + APIM in frontVNet integrationAPIM (with WAF on APIM if public)
Background worker / no inboundPublic access disabledVNet integrationNone
Rule of thumb: if it doesn't need to be on the internet, use a private endpoint and
disable public network access. If it does need to be on the internet, put **Front Door /
App Gateway with WAF in Prevention mode** in front and restrict the app to accept traffic
only from the WAF's IP range or service tag.

Approach

  1. Enable managed identity — System-assigned managed identity by default. Grant it

least-privilege roles on Azure SQL (SQL DB Contributor is wrong - use AAD auth + contained user), Storage (Storage Blob Data Reader), Key Vault (Key Vault Secrets User). Verify: app has managed identity; no SQL / Storage connection strings with embedded passwords in config.

  1. Easy Auth for sign-in — Use built-in App Service authentication (Easy Auth) with

Microsoft Entra ID for OIDC sign-in without writing auth code. Configure the redirect URI, token store, and requireAuthentication = true to gate the whole app. Verify: anonymous request returns 302 redirect to Entra sign-in; authenticated request returns 200 with the user's principal claims.

  1. Secrets via Key Vault references — Store secrets in Key Vault; reference them in app

settings as @Microsoft.KeyVault(SecretUri=...). No code change; managed identity reads the secret at start / refresh. Verify: app settings show `Key Vault Reference` as Resolved; no plaintext secrets in config.

  1. Network isolation — VNet integration for outbound (so the app can reach private

endpoints, on-prem via gateway). Private endpoint for inbound on sensitive apps. Disable public access if private endpoint is used. Verify: app outbound IP is in the integrated subnet; inbound test from public internet to private-endpoint-only app = 403 / connection refused.

  1. Transport hardening — Enforce HTTPS-only, minimum TLS 1.2 (TLS 1.3 preferred),

disable FTP (use FTPS or deployment center only), enable HSTS where appropriate. Verify: HTTP request 301-redirects to HTTPS; `httpsOnly = true`; `minTlsVersion = "1.2"` or higher; `ftpsState = "Disabled"` if no FTP needed.

  1. WAF in front when public — Front Door (global) or App Gateway with WAF (regional) in

Prevention mode. Restrict App Service inbound to the WAF using Access Restrictions with the WAF's service tag (AzureFrontDoor.Backend) or IP range and the X-Azure-FDID header. Verify: direct request to the App Service URL = 403; request via the WAF FQDN = 200.

  1. Monitor + Defender — Diagnostic logs to Log Analytics, Defender for App Service on

the plan, App Insights for app telemetry. Alert on anomalous authentication failures.

Guardrails

  • **Remove public inbound exposure with private endpoints for sensitive apps; pair with WAF

for public apps.** Apps directly on the internet without a WAF are scanned constantly.

  • Use managed identity + Key Vault references to eliminate secrets in config. Connection

strings in app settings are an audit finding waiting to happen.

  • Enforce HTTPS-only and modern TLS; disable legacy protocols and FTP. TLS 1.0 / 1.1 and

FTP are immediate audit failures.

  • Easy Auth doesn't replace authorisation. It authenticates; you still need to check

roles / claims in code for sensitive actions.

  • Access Restrictions are the lock on the back door. Without restricting App Service to

the WAF's IPs / FDID header, attackers bypass the WAF by hitting the App Service URL directly.

  • Defender for App Service catches things AV doesn't. Webshell upload, anomalous app

behaviour - enable on the plan.

Common anti-patterns

  • "Connection string in app settings as plaintext" - Visible to anyone with Reader on

the app. Key Vault reference.

  • "Public App Service URL with WAF as 'recommended add-on later'" - Attackers bypass the

WAF on day one. Lock down access restrictions when WAF goes in.

  • "FTP enabled for legacy deployment" - Cleartext credentials. Use FTPS or deployment

center.

  • "HTTPS-only off because of one legacy callback" - Fix the callback. Don't downgrade

the whole app.

  • "Easy Auth + 'allow anonymous to /api/*'" - Defeats the gate. Authenticate everything;

authorise inside.

  • "VNet integration without disabling public access" - You added security but didn't

remove the old door.

Example prompts

  • Harden an Azure App Service web app with Easy Auth, managed identity, and TLS.
  • How do I lock down App Service with private endpoints and VNet integration?
  • Use Key Vault references for App Service secrets instead of plain app settings.
  • Put Front Door with WAF in front of App Service and lock the back door.
  • Disable FTP, enforce HTTPS-only, and set minimum TLS 1.2.
  • Review my App Service network and authentication configuration for security gaps.

Microsoft Learn

  • App Service security: https://learn.microsoft.com/azure/app-service/overview-security
  • Easy Auth: https://learn.microsoft.com/azure/app-service/overview-authentication-authorization
  • Key Vault references: https://learn.microsoft.com/azure/app-service/app-service-key-vault-references
  • Networking features: https://learn.microsoft.com/azure/app-service/networking-features
  • Private endpoints: https://learn.microsoft.com/azure/app-service/overview-private-endpoint
  • Access restrictions: https://learn.microsoft.com/azure/app-service/app-service-ip-restrictions
  • TLS / HTTPS: https://learn.microsoft.com/azure/app-service/configure-ssl-bindings
  • Defender for App Service: https://learn.microsoft.com/azure/defender-for-cloud/defender-for-app-service-introduction

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

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

Source

Popularity

Repository stars
175
Repository forks
35
7-day trend score
31

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • pluginCustom plugin integration

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/vinayaklatthe/microsoft-security-skills/azure-app-service-security/badge)](https://verified-skill.com/skills/vinayaklatthe/microsoft-security-skills/azure-app-service-security)

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