- Home
- Skills
- DevOps & Cloud
- ARM Template Parameter Sanitizer
ARM Template Parameter Sanitizer
The cheapest secret leak is the one already sitting in git.
Free
What it does
- Scans ARM templates, ARM parameter files, Bicep and bicepparam files in a folder
- Flags password-like parameters that are not secureString or are missing @secure()
- Reports hardcoded secret defaults, connection-string keys and secret values stored in parameter files
- Warns about parameters that are declared and then never referenced
- Flags a fixed set of insecure defaults (public storage, weak TLS, open NSG rules, secret outputs)
Who it's for
Platform, DevOps and security engineers
reviewing Azure ARM or Bicep templates before a deployment or a pull request
Anyone who needs to confirm a parameters file
does not contain a password
ARM Template Parameter Sanitizer
Example session with this skill installed
Command: python3 scripts/sanitize_arm_params.py examples/dirty
- Read your context and instructions
- Compiled the arm template parameter
[BLOCKER] azuredeploy.json: parameter 'sqlAdminPassword': type is string (use secureString or secureObject)
[BLOCKER] azuredeploy.json: parameter 'sqlAdminPassword': defaultValue non-empty default or value on a secret-named parameter
[WARN] azuredeploy.json: parameter 'unusedRegion': never referenced via parameters()
[BLOCKER] azuredeploy.json: variable 'storageConn': storage account key in a connection string
[WARN] azuredeploy.json: output 'sqlAdminPassword': name looks like a secret; outputs are visible in deployment history
[WARN] azuredeploy.json: resources[0] (Microsoft.Storage/storageAccounts [parameters('storageAccountName')]): allowBlobPublicAccess is true
[BLOCKER] azuredeploy.json: resources[0] (Microsoft.Storage/storageAccounts [parameters('storageAccountName')]): supportsHttpsTrafficOnly is false
[WARN] azuredeploy.json: resources[0] (Microsoft.Storage/storageAccounts [parameters('storageAccountName')]): minimumTlsVersion is TLS1_0 (use TLS1_2 or later)
[WARN] azuredeploy.json: resources[0] (Microsoft.Storage/storageAccounts [parameters('storageAccountName')]): publicNetworkAccess is Enabled
[WARN] azuredeploy.json: resources[0] (Microsoft.Storage/storageAccounts [parameters('storageAccountName')]): networkAcls.defaultAction is Allow
[WARN] azuredeploy.json: resources[0] (Microsoft.Storage/storageAccounts [parameters('storageAccountName')]): allowSharedKeyAccess is true
[BLOCKER] azuredeploy.json: resources[1] (Microsoft.Network/networkSecurityGroups nsg-app): NSG rule 'allow-ssh-internet' allows inbound from * to port 22
[BLOCKER] main.bicep: line 1 parameter 'sqlAdminPassword': secret-named param is missing @secure()
[BLOCKER] main.bicep: line 1 parameter 'sqlAdminPassword': default non-empty default or value on a secret-named parameter
[BLOCKER] main.bicep: line 7 variable 'storageConn': storage account key in a connection string
[WARN] main.bicep: line 15: allowBlobPublicAccess is true
[BLOCKER] main.bicep: line 16: supportsHttpsTrafficOnly is false
[WARN] main.bicep: line 17: minimumTlsVersion is below TLS1_2
[WARN] main.bicep: line 18: publicNetworkAccess is Enabled
[WARN] main.bicep: line 1 parameter 'sqlAdminPassword': never referenced after declaration
[WARN] main.bicep: line 5 parameter 'unusedRegion': never referenced after declaration
Summary: 9 blocker(s), 12 warning(s), 2 file(s)
Second run on parameter files that store a password as a plain value:
Command: python3 scripts/sanitize_arm_params.py examples/params/dirty.parameters.json examples/params/dirty.bicepparam
[BLOCKER] dirty.parameters.json: parameter 'sqlAdminPassword' value: non-empty default or value on a secret-named parameter
[BLOCKER] dirty.bicepparam: line 3 param 'sqlAdminPassword': non-empty default or value on a secret-named parameter
Summary: 2 blocker(s), 0 warning(s), 2 file(s)
The same templates after the issues are fixed (examples/clean and examples/params/clean.parameters.json plus examples/params/clean.bicepparam) return exit code 0:
Summary: 0 blocker(s), 0 warning(s), 2 file(s)
Connects securely to your tools. The creator never sees your data.
About this skill
The cheapest secret leak is the one already sitting in git. This skill gives your agent a deterministic, offline workflow: point the bundled scanner at your templates and parameter files, read the BLOCKER and WARN findings, then fix each one using the included notes.
The scanner is a single standard-library script. It does not call Azure and it does not modify files. It understands ARM deployment templates, ARM parameter files (including Key Vault references), Bicep parameters and bicepparam assignments. Secret-like parameter names must be secure, must not have a literal default, and must not be written as plain values in a parameters file. Connection-string account keys, private key PEM and JWT-like tokens are treated as blockers wherever they appear. A short list of insecure resource defaults is also reported, including storage accounts that allow HTTP, NSG rules that open management ports to the internet, and outputs whose names look like secrets.
Synthetic example templates with expected output are included so you can verify the behaviour in seconds.
- File-based only: it cannot see parameter values passed only at deploy time, or what is already in a subscription.
- Bicep support is a line parser, not the Bicep compiler; module graphs and compile-time functions are not evaluated.
- It knows only the secret-name patterns, value patterns and resource defaults in its notes. Unusual names or new Azure properties need a rule update.
- Reports and explains; it does not rewrite your templates.
The scanner is a single standard-library Python script. It makes no network calls and never writes files. Give it one or more files or directories; it walks .json, .bicep and .bicepparam files. ARM templates are parsed as JSON. Parameters are checked for secret-like names, type (secureString or secureObject), hardcoded defaultValue, and whether they appear in a parameters('name') expression. Variables and resource properties are scanned for connection-string keys, private key PEM and JWT-like tokens. Nested resources are included. Parameter files that use a Key Vault reference are accepted; a secret stored as value is not. Bicep is scanned with a line parser, not a compiler: @secure() on the preceding decorators, string defaults, identifier use-counts, and a fixed set of insecure property literals. Exit codes: 0 no blockers, 1 blockers found, 2 bad arguments. Optional --format json. It cannot see values passed only at deploy time, and it does not compile Bicep modules or call Azure.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 1 day ago
- Free with an Agensi account
Permissions
What's inside
Frequently Asked Questions
New in DevOps & Cloud
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for DevOps & Cloud.