Perimeter Exploitation to SUID Privilege Retention & Tunneling
Résumé Exécutif
Section intitulée « Résumé Exécutif »Simule une intrusion périmétrique non authentifiée émulant un zero-day Citrix, posant un binaire canari SUID et établissant une télémétrie de proxy local.
Phases de la Chaîne MITRE ATT&CK
Section intitulée « Phases de la Chaîne MITRE ATT&CK »Initial AccessExecutionPersistencePrivilege EscalationCommand and Control
Déroulement Chronologique des Étapes
Section intitulée « Déroulement Chronologique des Étapes »-
Étape 1 : Benign Perimeter Probe & Header Injection Canary
- Technique :
T1190 - Exploit Public-Facing Application - Commande d’émulation sûre :
Fenêtre de terminal curl -s -k -H 'User-Agent: HERMES-BAS-CANARY-PROBE' https://gateway.internal.net/nf/auth/doAuthentication.do - Télémétrie attendue : Web server access log entry containing User-Agent HERMES-BAS-CANARY-PROBE and status 200/403.
- Critère de succès : HTTP response received; edge security appliances record inbound probe signature.
- Technique :
-
Étape 2 : Canary File Drop in Web Root Hierarchy
- Technique :
T1505.003 - Web Shell - Commande d’émulation sûre :
Fenêtre de terminal echo '<?php /* HERMES BAS INERT CANARY */ ?>' > /tmp/hermes_bas_canary.sig - Télémétrie attendue : File creation event in /tmp recorded by EDR / auditd with non-executable PHP tag.
- Critère de succès : Canary file created with strict 0600 permissions.
- Technique :
-
Étape 3 : Canary SUID Binary Privilege Escalation Simulation
- Technique :
T1548.001 - Setuid and Setgid - Commande d’émulation sûre :
Fenêtre de terminal cp /bin/true /tmp/hermes_suid_test && chmod 4755 /tmp/hermes_suid_test - Télémétrie attendue : Auditd / EDR alert for SUID bit modification (chmod 4755) in /tmp directory.
- Critère de succès : Binary created with SUID bit; file execution produces benign exit code 0.
- Technique :
-
Étape 4 : Simulated Proxy Mutex Lock & Local Port Binding
- Technique :
T1090 - Proxy - Commande d’émulation sûre :
Fenêtre de terminal touch /tmp/.hermes_uxdlock && python3 -c 'import socket, time; s=socket.socket(); s.bind(("127.0.0.1", 44443)); time.sleep(2)' - Télémétrie attendue : Network socket bind event on loopback port 44443 and file touch in /tmp.
- Critère de succès : Mutex file created and closed; port bound and safely released after 2 seconds.
- Technique :
Gardes-Fous & Procédure de Nettoyage
Section intitulée « Gardes-Fous & Procédure de Nettoyage »- All commands operate strictly on localhost or dedicated sandbox environments.
- No network traffic is dispatched outside the authorized simulation boundary.
- Payloads use non-executable benign canaries (/bin/true, inert comments).
Commande de purge :
rm -f /tmp/hermes_bas_canary.sig /tmp/hermes_suid_test /tmp/.hermes_uxdlockTest de vérification : test ! -f /tmp/hermes_suid_test && test ! -f /tmp/hermes_bas_canary.sig