FlyFar

apparmor/home.ssh-mitm.bin.sshd_mitm

Aug 12th, 2023
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | Cybersecurity | 0 0
  1. # Copyright (C) 2017-2018 Joe Testa <jtesta@positronsecurity.com>
  2. #
  3. # This program is free software: you can redistribute it and/or modify
  4. # it under the terms version 3 of the GNU General Public License as
  5. # published by the Free Software Foundation.
  6.  
  7.  
  8. #include <tunables/global>
  9.  
  10. /home/ssh-mitm/bin/sshd_mitm {
  11. #include <abstractions/base>
  12. #include <abstractions/wutmp>
  13.  
  14. network inet dgram,
  15. network inet stream,
  16. network inet6 dgram,
  17. network inet6 stream,
  18. network unix stream,
  19. network netlink raw,
  20.  
  21. /bin/bash r,
  22. /dev/ptmx rw,
  23. /dev/pts/* rw,
  24. /dev/tty rw,
  25. /etc/gai.conf r,
  26. /etc/group r,
  27. /etc/ld.so.cache r,
  28. /etc/nsswitch.conf r,
  29. /etc/passwd r,
  30. /proc/*/fd/ r,
  31. /proc/*/oom_score_adj rw,
  32.  
  33. /home/ssh-mitm/bin/sshd_mitm mr,
  34. /home/ssh-mitm/bin/sshd_mitm ix,
  35. /home/ssh-mitm/bin/ssh px,
  36.  
  37. /home/ssh-mitm/empty/ r,
  38. /home/ssh-mitm/etc/* r,
  39.  
  40. /home/ssh-mitm/sshd.pid w,
  41.  
  42. /home/ssh-mitm/tmp/* rw,
  43.  
  44. /home/ssh-mitm/shell_session_*.txt w,
  45. /home/ssh-mitm/sftp_session_*.html w,
  46. /home/ssh-mitm/sftp_session_*/ w,
  47. /home/ssh-mitm/sftp_session_*/* w,
  48. }
Tags: ssh mitm attack
Add Comment
Please, Sign In to add comment