← Back to rule catalog
Rule R-SESSION-LENGTH
active

Long session lifetimes weaken upstream cryptographic protections

Advisory rule that flags long Salesforce session lifetimes.

Applies to
*
Cases
1
Evaluation order
90
Tags
session, token, exposure-window
Overlay-specific scope
pci-dss-4, hipaa
Engine description
Session lifetime exceeding guidance should be flagged as a supporting exposure.

Match cases

Case 1 medium · advisory
When
  • name equals SessionSettings
  • capture hours from location using (\d+)\s*h
  • captures.hours >= 8
Finding title template
Session timeout exceeds NIST session-termination guidance
Current crypto template
Session lifetime: {{captures.hours}} hours
Severity / status
medium · advisory
Effort / deadline
low
Recommended replacement
Reduce session lifetime to 2 hours with idle timeout at 30 minutes or less. Reauthenticate for privileged or high-risk actions so token theft windows do not persist for most of a workday.
Rationale
NIST SP 800-53 AC-12 treats session termination as a baseline control. Long-lived Salesforce sessions expand the replay window after credential theft or device compromise and weaken upstream cryptographic protections.
Citations
  • NIST_SP_800_53 · Security and Privacy Controls for Information Systems and Organizations
  • NIS2 · NIS 2 Directive — cybersecurity risk-management measures

This rule shows how operational settings can still be encoded declaratively, including small captured values like the hour count parsed from the scanned location string.