Quick Start

    For example:

    For more details, see here.

    Scan directory for misconfigurations

    1. $ trivy config [YOUR_IAC_DIR]

    For example:

    1. 2021-07-09T10:06:29.188+0300 INFO Need to update the built-in policies
    2. 2021-07-09T10:06:29.188+0300 INFO Downloading the built-in policies...
    3. =======================
    4. Tests: 23 (SUCCESSES: 22, FAILURES: 1, EXCEPTIONS: 0)
    5. Failures: 1 (UNKNOWN: 0, LOW: 0, MEDIUM: 0, HIGH: 1, CRITICAL: 0)
    6. +---------------------------+------------+----------------------+----------+------------------------------------------+
    7. | Dockerfile Security Check | DS002 | Image user is 'root' | HIGH | Last USER command in |
    8. | | | | | Dockerfile should not be 'root' |
    9. | | | | | -->avd.aquasec.com/appshield/ds002 |
    10. +---------------------------+------------+----------------------+----------+------------------------------------------+

    For more details, see here.