logo

Database

Aws Old Ssh Public Keys

Description

Detects AWS IAM users who have SSH public keys that are older than 90 days. Old SSH public keys pose a security risk as they may be compromised or forgotten, potentially allowing unauthorized access to systems.

Weakness:

277 - Weak credential policy - Password Expiration

Category: Probabilistic Techniques

Detection Strategy

    Lists all IAM users in the AWS account

    For each user, retrieves their SSH public keys

    Flags any SSH public key with an upload date more than 90 days ago

    Reports the user ARN and upload date for each old SSH key found

Severity v4.0

2.7

Low

Method ID

CSPM-EOD7B

Technique

CSPM

Target

AWS

Technology

IAM

CWE ID(s)

CWE-521