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
test(modules): de-flake PID non-leak check in descriptor census (#78)
kraii_65fe5851d115
diff --git a/tests/unit/test_module_descriptor_readiness.py b/tests/unit/test_module_descriptor_readiness.pyindex 11e7e66..ab8ad0e 100644--- a/tests/unit/test_module_descriptor_readiness.py+++ b/tests/unit/test_module_descriptor_readiness.py@@ -15352,7 +15352,11 @@ def test_mapping_order_cwd_environment_and_process_are_nonsemantic(assert descriptor_semantic_digest(descriptor) == beforeserialized = json.dumps(_independent_descriptor_projection(descriptor), sort_keys=True)assert str(_repository_root()) not in serialized- assert str(os.getpid()) not in serialized+ # The short numeric PID can appear by chance inside a 64-char sha256 digest in+ # the projection, which made this a flaky substring check. Strip long hex runs+ # (the digests) first; a genuine PID leak in a path or numeric field survives.+ serialized_without_digests = re.sub(r"[0-9a-f]{16,}", "", serialized)+ assert str(os.getpid()) not in serialized_without_digestsassert "ARES_5C1_NONSEMANTIC_CANARY" not in serialized