STIGQter STIGQter: STIG Summary: Application Programming Interface (API) Security Requirements Guide Version: 1 Release: 1 Benchmark Date: 11 Sep 2025:

When stateless authentication tokens are used, the API must configure them with appropriate security settings.

DISA Rule

SV-274678r1143711_rule

Vulnerability Number

V-274678

Group Title

SRG-APP-000400

Rule Version

SRG-APP-000400-API-000850

Severity

CAT II

CCI(s)

Weight

10

Fix Recommendation

Build or configure tokens for stateless authentication to ensure secure validation, prevent unauthorized access, and maintain integrity without relying on server-side sessions.

1. Configure expiration time in accordance with organizational defined limits.

2. Configure the token secret key to be a dynamic variable represented by an environmental variable or specified in an environment data file.

3. Store the key value in a data vault solution.

Check Contents

Verify the API configures tokens with the appropriate security settings, when stateless authentication tokens are used.

1. The token expiry times must be as short as possible since they determine the duration of the session and an active session cannot be revoked.

If an expiration time is not configured in accordance with organizational defined limits, this is a finding.

2. The token secret key must not be a part of the library code; it must be a dynamic variable represented by an environmental variable or specified in an environment data file.

Check if the token secret is included in requests that originate from the library. If a token secret key is part of library code, this is a finding.

3. The key value must be stored in a data vault solution. Check application configuration files. Check environment variables referencing vault storage.

If a key value is not stored in a data vault solution, this is a finding.

Vulnerability Number

V-274678

Documentable

False

Rule Version

SRG-APP-000400-API-000850

Severity Override Guidance

Verify the API configures tokens with the appropriate security settings, when stateless authentication tokens are used.

1. The token expiry times must be as short as possible since they determine the duration of the session and an active session cannot be revoked.

If an expiration time is not configured in accordance with organizational defined limits, this is a finding.

2. The token secret key must not be a part of the library code; it must be a dynamic variable represented by an environmental variable or specified in an environment data file.

Check if the token secret is included in requests that originate from the library. If a token secret key is part of library code, this is a finding.

3. The key value must be stored in a data vault solution. Check application configuration files. Check environment variables referencing vault storage.

If a key value is not stored in a data vault solution, this is a finding.

Check Content Reference

M

Target Key

5703