Aller au contenu

Perimeter Exploitation to SUID Privilege Retention & Tunneling

Densité :

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.

  • Initial Access
  • Execution
  • Persistence
  • Privilege Escalation
  • Command and Control

  1. É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.
  2. É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.
  3. É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.
  4. É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.

  • 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).