StackHawk Documentation StackHawk Logo HawkDocs

No results found

Try different keywords or check your spelling

Search documentation

Find guides, API references, and more

esc

Policy Management

When you run a security test with HawkScan, the scanner uses a scan policy—a set of plugins that correspond to common vulnerability tests.

StackHawk offers multiple scan policies with different plugins depending on your application type. The policy used during a scan is determined by your stackhawk.yml configuration.

Organization Policy Management

StackHawk supports creating organization-level policies that can be assigned directly from your stackhawk.yml configuration, enforcing consistent security standards across all your applications.

Org Policy Management

Creating and Applying Policies

To create a new organization policy:

  1. Choose one of the default StackHawk policies to duplicate based on your application or API technology. See StackHawk Policies for a description of each default policy.
  2. Give it a name and description.
  3. Adjust the plugins and tech flags as needed for your applications.

To apply the policy to all applications, include the following configuration in your stackhawk.yml file:

app:
  scanPolicy:
    name: CUSTOM_OPENAPI_POLICY

Customizing Policies for Specific Applications

If specific plugins are required or not applicable for a particular application, adjust the configuration file to include and exclude plugins as follows:

app:
  scanPolicy:
    name: CUSTOM_HAWKSCAN_POLICY
    includePluginIds:
      - 90036
    excludePluginIds:
      - 90035

Viewing Applied Scan Policy

To confirm which policy was applied for a particular scan, check the Scan Details screen which will indicate the name of the Scan Policy as well as whether or not it was modified from its defined configuration.

Viewing Scan Policy

Your privacy settings

We use first and third party cookies to ensure that we give you the best experience on our website and in our products.