logo

Database

Python Pipfile Missing Package Lock

Description

Detects when a Python project has a Pipfile declaring dependencies but is missing the corresponding Pipfile.lock file. Missing lock files can lead to dependency version inconsistencies and potentially introduce vulnerable package versions during installation.

Weakness:

431 - Supply Chain Attack - Lock Files

Category: Functionality Abuse

Detection Strategy

    Check if the Pipfile contains a [packages] section indicating declared dependencies

    Look for Pipfile.lock in the same directory as the Pipfile

    Report a vulnerability if dependencies are declared but Pipfile.lock is missing