Mehdi Akiki

Posts tagged "python"

  • Published on
    Compare waiting for one process with cleanup on completion, timeout, cancellation, and launcher failure. Give the whole job an independent supervisor.
  • Published on

    Reference · Through the layers

    Prevent Shell Injection in Python Agent Tools

    Keep a filename out of the shell, then handle spaces and leading options with a fixed converter and an explicit argument list.
  • Published on

    Reference · Through the layers

    Stop Secret Inheritance in Python Subprocesses

    Compare two Python launches using a dummy token and file descriptor, then restrict the environment and handles passed to the child.
  • Published on
    On 21 October a file of twelve bytes made Python run a stealer at every start, pip included. I built my own harmless startup hook to see exactly when it runs and what stops it, and I measured what Python 3.15 changes.