Skip to content

Introduction of a supply chain attack #10

Closed as not planned
Closed as not planned

Description

@earonesty

changing this in a program that has no deps:

subprocess.run(
["ls], cwd=build_temp, check=True
)

to a security module and a requirements.txt requirement with no ---hash

means that we have strictly made things less secure.

i think

  1. if there no variables used in the subprocess call, then probably, it's better not to introduce a new dependency
  2. anytime when adding to requirements.txt, include the --hash sha256:... command, to make it harder to attack

Activity

  1. drdavella commented on Feb 13, 2024

    @drdavella
    Contributor

    Hi @earonesty thanks so much for your feedback.

    First of all, correct me if I'm wrong, but I'm assuming this change was introduced by @pixeebot? If so, and if it was in a public repository, would you mind sharing a link to the PR?

    To address your specific comments:

  2. drdavella commented on Feb 14, 2024

    @drdavella
    Contributor

    Closing this issue since the items raised here are really related to the behavior of https://github.com/pixee/codemodder-python. Please see the linked issues and join the discussion there.

    Thanks again for your feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions