Turbot Guardrails Hub 
Hub
  • Mods
  • Policy Packs
  • Docs
  • Home
ModsPolicy PacksDocsHome
Mods
Azure
Loading policies...

Policy: Azure > CIS v1 > 3 Storage > 3.02 Ensure that storage account access keys are periodically regenerated (Not Scored) > Attestation

By setting this policy, you attest that you have manually verified that it complies with the relevant section of the CIS Benchmark.

Azure Console 1. Go to Storage Accounts 2. For each storage account, go to Activity log 3. Under Timespan drop-down, select Custom and choose Start time and End time such that it ranges 90 days 4. Enter RegenerateKey in the Search text box 5. Click Apply It should list out all RegenerateKey events. If no such event exists, then this is a finding.

Azure Command Line Interface 2.0 Step 1 - Get a list of storage accounts az storage account list Make a note of id, name and resourceGroup. Step 2 For every storage account make sure that key is regenerated in past 90 days. az monitor activity-log list --resource-group

The output should contain "authorization"/"scope": <your_storage_account> AND "authorization"/"action": "Microsoft.Storage/storageAccounts/regenerateKey/action" AND "status"/"localizedValue": "Succeeded" "status"/"Value": "Succeeded" AND "eventTimestamp" : (Should return time and date should be less than past 90 days)

Once verified, enter the date that this attestation expires. Note that the date can not be further in the future than is specified in Azure > CIS v1 > Maximum Attestation Duration. Set to a blank value to clear the attestation.

Targets

This policy targets the following resource types:

  • Azure > Storage > Storage Account

Primary Policy

This policy is used with the following primary policy:

  • Azure > CIS v1 > 3 Storage > 3.02 Ensure that storage account access keys are periodically regenerated (Not Scored)

Controls

Setting this policy configures this control:

  • Azure > CIS v1 > 3 Storage > 3.02 Ensure that storage account access keys are periodically regenerated (Not Scored)

Policy Specification

Schema Type
string

Category

  • CIS > Controls v7 > 16 Account Monitoring and Control

In Your Workspace

  • Policy Settings by Type report

Developers

    Category URI
    • tmod:@turbot/cis#/control/categories/v0716
  • Policy Type URI
    • tmod:@turbot/azure-cisv1#/policy/types/r0302Attestation
  • GraphQL
    • query policyType(id: "tmod:@turbot/azure-cisv1#/policy/types/r0302Attestation") { … }
    • query policySettings(filter: "policyTypeId:'tmod:@turbot/azure-cisv1#/policy/types/r0302Attestation'") { … }
    • query policyValues(filter: "policyTypeId:'tmod:@turbot/azure-cisv1#/policy/types/r0302Attestation'") { … }
  • CLI
    • Get Policy Type
    • turbot graphql policy-type --id "tmod:@turbot/azure-cisv1#/policy/types/r0302Attestation"
    • Get Policy Settings
    • turbot graphql policy-settings --filter "policyTypeId:tmod:@turbot/azure-cisv1#/policy/types/r0302Attestation"
Guardrails
Guardrails Hub
  • Hub
  • Docs
  • Blog
  • Changelog
Products
  • GuardrailsGuardrails
  • PipesPipes
  • SteampipeSteampipe
  • PowerpipePowerpipe
  • FlowpipeFlowpipe
  • TailpipeTailpipe
Turbot
  • Home
  • About us
  • We're hiring!
  • Contact us
Community

Our community of practitioners love to discuss cloud governance & security.

Slack logoJoin us on Slack →

System StatusLegalSecurity
Terms of UseSecurityPrivacy
50
Mods
204
Resource Types
3,575
Policies
1,941
Controls
103
Quick Actions
111
IAM