fix: audit process by executable (#17671)

* fix: audit process execution by name, ignore args

* test: fix stale test expectations

* fix: resolve Windows subprocess audit targets from command line

* fix: preserve quoted Windows paths in process audit grants

* fix: grant shell permissions for os.system commands

* fix: require grants for all possible os.system shells

* fix: clarify process permission scope in prompts

* refactor: simplify audit target handling

* fix: handle ambiguous Windows process commands

* test: fix for ambigous calls on windows
This commit is contained in:
Ian Chua authored and GitHub committed 2026-11-20 05:24:22 +08:00
1 parent 7932cd23f7
commit 5cf5ef881e
7 files changed
+783 -62

No files matched your search

+2 -2
View File
@@ -663,8 +663,8 @@ void bind_python_api(pybind11::module_& m)
Each bucket takes the target strings the plugin expects the corresponding audit event to
report: filesystem paths for fs_read and fs_readwrite, URLs for network_http, socket addresses
for network_socket, and commands for process. threading=True requests permission to start
threads. Targets already granted to the plugin are not asked for again.
for network_socket, and executables or command names for process. threading=True requests
permission to start threads. Targets already granted to the plugin are not asked for again.
fs_create and fs_delete take folders rather than files. A literal folder entry grants creating
or deleting entries directly inside that folder, not inside its subfolders. An entry ending in