Menu

#Subprocess

11 posts

Feed·
10 of 11 posts
5 rules for running subprocesses in Python without the injection risk
📰
0Read More

5 rules for running subprocesses in Python without the injection risk

DEV Community: cybersecurity·Aurum Revenue·12 days ago
#r9uUnAJw
#devtocybersecurity#devto#dev#shell#list

subprocess.run() is safe when you pass an argv list with shell off. Here are the 5 rules that stop shell injection, with vulnerable and fixed code side by side.

15s
Building a Sub-1ms FastAPI Prompt Injection & AST Tool-Call Firewall in Python (With 8 Pytest Invariant Suites)
📰
0Read More

Building a Sub-1ms FastAPI Prompt Injection & AST Tool-Call Firewall in Python (With 8 Pytest Invariant Suites)

DEV Community: fastapi·sinescribe·15 days ago
#tdbTzJHP
#devtofastapi#devto#dev#node#call

When you deploy an autonomous AI agent with shell, database, or file-system tools, every untrusted...

15s
0Read More

Sandboxing subprocesses with Landlock in Go 1.28

Reddit r/golang·u/atkrad·about 1 month ago
#nrVFtPX3
#landlock#subprocess#sandboxing#apply#ruleset

I was looking through the upcoming Go 1.28 changes and found the new Landlock support in syscall.SysProcAttr interesting. It lets Go apply a Landlock ruleset to a subprocess without restricting the parent process.…

15s
Python subprocess.run() Deep Dive: Isolation, Timeouts, and Captured Output
📰
0Read More

Python subprocess.run() Deep Dive: Isolation, Timeouts, and Captured Output

DEV Community·German Yamil·7 months ago
#ZeBV4LNZ

Everything subprocess.run() does that you're not using: capture_output, timeout enforcement, cwd isolation, env injection, stdin piping. With working examples for each.

15s