ARES - authorized red-team engagement automation with dashboard, campaign scope, module orchestration, OPSEC controls, encrypted vault, and reporting.
Python active-directorycloud-securitydefensive-validationfastapigood-first-issuemitre-attackopsecreactred-teamreportingsecurity
fix(permissions): distinguish remote command payloads from local subprocess execution
Mafifrizi9dc5d5ecc5b3
diff --git a/ares/sdk/security/permissions.py b/ares/sdk/security/permissions.pyindex 7790119..f64117d 100644--- a/ares/sdk/security/permissions.py+++ b/ares/sdk/security/permissions.py@@ -168,7 +168,7 @@ class ProcessPermission(SecurityPermission):return "process"def validate_request(self, params: dict[str, Any], context: Any) -> None:- spawns = params.get("spawn_process", False) or params.get("binary") or params.get("command")+ spawns = bool(params.get("spawn_process", False)) or bool(params.get("spawn_subprocess", False))if not self.allow_subprocesses and spawns:raise SecurityCapabilityViolation("Subprocess execution is strictly prohibited for this module",@@ -176,7 +176,7 @@ class ProcessPermission(SecurityPermission):)if self.allow_subprocesses and self.allowed_binaries:- binary = params.get("binary") or params.get("command")+ binary = params.get("binary") or params.get("subprocess_binary")if binary:base = pathlib.Path(str(binary).strip().split()[0]).name.lower()allowed_lower = [pathlib.Path(b).name.lower() for b in self.allowed_binaries]