From b407337ada84011da7b4f85cbe9df8a85ef3c6d6 Mon Sep 17 00:00:00 2001 From: Pierre Lamusse Date: Mon, 22 Apr 2024 16:02:10 +0200 Subject: [PATCH] fix - stealthmode is not recognised as disabled until firewall restarts --- threatmodel-macOS.json | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/threatmodel-macOS.json b/threatmodel-macOS.json index af0b22c..cf5442d 100644 --- a/threatmodel-macOS.json +++ b/threatmodel-macOS.json @@ -121,7 +121,7 @@ "maxversion": 0, "class": "cli", "elevation": "system", - "target": "/usr/libexec/ApplicationFirewall/socketfilterfw --setstealthmode off", + "target": "/usr/libexec/ApplicationFirewall/socketfilterfw --setstealthmode off && defaults write /Library/Preferences/com.apple.alf globalstate -int 0; sleep 1; defaults write /Library/Preferences/com.apple.alf globalstate -int 1", "education": [ { "locale": "EN", @@ -142,9 +142,7 @@ "dimension": "system integrity", "severity": 5, "scope": "generic", - "tags": [ - "Personal Posture" - ], + "tags": ["Personal Posture"], "description": [ { "locale": "EN", @@ -213,9 +211,7 @@ "dimension": "system integrity", "severity": 5, "scope": "macOS", - "tags": [ - "Personal Posture" - ], + "tags": ["Personal Posture"], "description": [ { "locale": "EN", @@ -838,9 +834,7 @@ "dimension": "system integrity", "severity": 4, "scope": "generic", - "tags": [ - "Personal Posture" - ], + "tags": ["Personal Posture"], "description": [ { "locale": "EN", @@ -1858,4 +1852,4 @@ } } ] -} \ No newline at end of file +}