standard
turbot/azure_cis

Pipeline: 4.5 Ensure that Shared Access Signature Tokens Expire Within an Hour

Description

Expire shared access signature tokens within an hour.

A shared access signature (SAS) is a URI that grants restricted access rights to Azure Storage resources. A shared access signature can be provided to clients who should not be trusted with the storage account key but for whom it may be necessary to delegate access to certain storage account resources. Providing a shared access signature URI to these clients allows them access to a resource for a specified period of time. This time should be set as low as possible and preferably no longer than an hour.

Remediation

When generating shared access signature tokens, use start and end time such that it falls within an hour.

From Azure Portal

  1. Go to Storage Accounts.
  2. For each storage account where a shared access signature is required, under Security + networking, go to Shared access signature.
  3. Select the appropriate Allowed resource types.
  4. Set the Start and expiry date/time to be within one hour.
  5. Click Generate SAS and connection string.

Default Value

By default, expiration for shared access signature is set to 8 hours.

Run the pipeline

To run this pipeline from your terminal:

flowpipe pipeline run azure_cis.pipeline.cis_v300_4_5

Use this pipeline

To call this pipeline from your pipeline, use a step:

step "pipeline" "step_name" {
pipeline = azure_cis.pipeline.cis_v300_4_5
}

Params

NameTypeRequiredDescriptionDefault
database
connection.steampipe
YesDatabase connection string.connection.steampipe.default
notifier
notifier
YesThe name of the notifier to use for sending notification messages.notifier.default
notification_level
string
YesThe verbosity level of notification messages to send. Valid options are 'verbose', 'info', 'error'.info
approvers
list(notifier)
YesList of notifiers to be used for obtaining action/approval decisions.notifier.default

Outputs

This pipeline has no outputs.

Tags

folder = CIS v3.0.0/4 Storage Accounts