Command-line tool to perform various persistence mechanism techniques on macOS. This tool was designed to be used by threat (https://www.kitploit.com/search/label/Threat) hunters for cyber threat emulation (https://www.kitploit.com/search/label/Emulation) purposes.
Install
Do it up: $ pip3 install poisonapple --user
Note: PoisonApple was written & tested using Python 3.9, it should work using Python 3.6+
Important Notes!
PoisonApple will make modifications to your macOS system, it's advised to only use PoisonApple on a virtual machine. Although any persistence mechanism technique added using this tool can also be easily removed (-r), please use with caution! Be advised: This tool will likely cause common AV / EDR / other macOS security products to generate alerts. To understand how any of these techniques work in-depth please see The Art of Mac Malware, Volume 1: (https://taomm.org/PDFs/vol1/CH%200x02%20Persistence.pdf)Analysis (https://www.kitploit.com/search/label/Analysis) - Chapter 0x2: Persistence by Patrick Wardle of Objective-See. It's a fantastic resource.
Usage
See PoisonApple switch options (--help): $ poisonapple --help
usage: poisonapple [-h] [-l] [-t TECHNIQUE] [-n NAME] [-c COMMAND] [-r]
Command-line tool to perform various persistence mechanism techniques on macOS.
optional arguments:
-h, --help show this help message and exit
-l, --list list available persistence mechanism techniques
-t TECHNIQUE, --technique TECHNIQUE
persistence mechanism technique to use
-n NAME, --name NAME name for the file or label used for persistence
-c COMMAND, --command COMMAND
command(s) to execute for persistence
-r, --remove remove persistence mechanism
List of available techniques: $ poisonapple --list
, _______ __
.-.:|.-. | _ .-----|__|-----.-----.-----.
.' '. |. | | | | |__ --| | | | |
'-."~". .-' |. ____|_____|__|_____|_____|__|__|
} ` } { |: | _______ __
} } } { |::.| | _ .-----.-----| |-----.
} ` } { `---' |. | | | | | | | -__|
.-'"~" '-. |. _ | __| __|__|_____|
'. .' |: | |__| |__|
'-_.._-' |::.|:. |
`--- ---' v0.2.0
+--------------------+
| AtJob |
+--------------------+
| Bashrc |
+--------------------+
| Cron |
+--------------------+
| CronRoot |
+--------------------+
| Emond |
+--------------------+
| LaunchAgent |
+--------------------+
| LaunchAgentUser |
+--------------------+
| LaunchDaemon |
+--- -----------------+
| LoginHook |
+--------------------+
| LoginHookUser |
+--------------------+
| LoginItem |
+--------------------+
| LogoutHook |
+--------------------+
| LogoutHookUser |
+--------------------+
| Periodic |
+--------------------+
| Reopen |
+--------------------+
| Zshrc |
+--------------------+
Apply a persistence mechanism: $ poisonapple -t LaunchAgentUser -n testing
, _______ __
.-.:|.-. | _ .-----|__|-----.-----.-----.
.' '. |. | | | | |__ --| | | | |
'-."~". .-' |. ____|_____|__|_____|_____|__|__|
} ` } { |: | _______ __
} } } { |::.| | _ .-----.-----| |-----.
} ` } { `---' |. | | | | | | | -__|
.-'"~" '-. |. _ | __| __|__|_____|
'. .' |: | |__| |__|
'-_.._-' |::.|:. |
`--- ---' v0.2.0
[+] Success! The persistence mechanism action was successful: LaunchAgentUser
If no command is specified (-c) a default trigger command will be used which writes to a file on the Desktop (https://www.kitploit.com/search/label/Desktop) every time the persistence mechanism is triggered: $ cat ~/Desktop/PoisonApple-LaunchAgentUser
Install
Do it up: $ pip3 install poisonapple --user
Note: PoisonApple was written & tested using Python 3.9, it should work using Python 3.6+
Important Notes!
PoisonApple will make modifications to your macOS system, it's advised to only use PoisonApple on a virtual machine. Although any persistence mechanism technique added using this tool can also be easily removed (-r), please use with caution! Be advised: This tool will likely cause common AV / EDR / other macOS security products to generate alerts. To understand how any of these techniques work in-depth please see The Art of Mac Malware, Volume 1: (https://taomm.org/PDFs/vol1/CH%200x02%20Persistence.pdf)Analysis (https://www.kitploit.com/search/label/Analysis) - Chapter 0x2: Persistence by Patrick Wardle of Objective-See. It's a fantastic resource.
Usage
See PoisonApple switch options (--help): $ poisonapple --help
usage: poisonapple [-h] [-l] [-t TECHNIQUE] [-n NAME] [-c COMMAND] [-r]
Command-line tool to perform various persistence mechanism techniques on macOS.
optional arguments:
-h, --help show this help message and exit
-l, --list list available persistence mechanism techniques
-t TECHNIQUE, --technique TECHNIQUE
persistence mechanism technique to use
-n NAME, --name NAME name for the file or label used for persistence
-c COMMAND, --command COMMAND
command(s) to execute for persistence
-r, --remove remove persistence mechanism
List of available techniques: $ poisonapple --list
, _______ __
.-.:|.-. | _ .-----|__|-----.-----.-----.
.' '. |. | | | | |__ --| | | | |
'-."~". .-' |. ____|_____|__|_____|_____|__|__|
} ` } { |: | _______ __
} } } { |::.| | _ .-----.-----| |-----.
} ` } { `---' |. | | | | | | | -__|
.-'"~" '-. |. _ | __| __|__|_____|
'. .' |: | |__| |__|
'-_.._-' |::.|:. |
`--- ---' v0.2.0
+--------------------+
| AtJob |
+--------------------+
| Bashrc |
+--------------------+
| Cron |
+--------------------+
| CronRoot |
+--------------------+
| Emond |
+--------------------+
| LaunchAgent |
+--------------------+
| LaunchAgentUser |
+--------------------+
| LaunchDaemon |
+--- -----------------+
| LoginHook |
+--------------------+
| LoginHookUser |
+--------------------+
| LoginItem |
+--------------------+
| LogoutHook |
+--------------------+
| LogoutHookUser |
+--------------------+
| Periodic |
+--------------------+
| Reopen |
+--------------------+
| Zshrc |
+--------------------+
Apply a persistence mechanism: $ poisonapple -t LaunchAgentUser -n testing
, _______ __
.-.:|.-. | _ .-----|__|-----.-----.-----.
.' '. |. | | | | |__ --| | | | |
'-."~". .-' |. ____|_____|__|_____|_____|__|__|
} ` } { |: | _______ __
} } } { |::.| | _ .-----.-----| |-----.
} ` } { `---' |. | | | | | | | -__|
.-'"~" '-. |. _ | __| __|__|_____|
'. .' |: | |__| |__|
'-_.._-' |::.|:. |
`--- ---' v0.2.0
[+] Success! The persistence mechanism action was successful: LaunchAgentUser
If no command is specified (-c) a default trigger command will be used which writes to a file on the Desktop (https://www.kitploit.com/search/label/Desktop) every time the persistence mechanism is triggered: $ cat ~/Desktop/PoisonApple-LaunchAgentUser
Triggered @ Tue Mar 23 17:46:02 CDT 2021
Triggered @ Tue Mar 23 17:46:13 CDT 2021
Triggered @ Tue Mar 23 17:46:23 CDT 2021
Triggered @ Tue Mar 23 17:46:33 CDT 2021
Triggered @ Tue Mar 23 17:46:43 CDT 2021
Triggered @ Tue Mar 23 17:46:53 CDT 2021
Triggered @ Tue Mar 23 17:47:03 CDT 2021
Triggered @ Tue Mar 23 17:47:13 CDT 2021
Triggered @ Tue Mar 23 17:48:05 CDT 2021
Triggered @ Tue Mar 23 17:48:15 CDT 2021
Remove a persistence mechanism: $ poisonapple -t LaunchAgentUser -n testing (https://www.kitploit.com/search/label/Testing) -r
...
Use a custom command: $ poisonapple -t LaunchAgentUser -n foo -c "echo foo >> /Users/user/Desktop/foo"
...
Download PoisonApple (https://github.com/CyborgSecurity/PoisonApple)
Triggered @ Tue Mar 23 17:46:13 CDT 2021
Triggered @ Tue Mar 23 17:46:23 CDT 2021
Triggered @ Tue Mar 23 17:46:33 CDT 2021
Triggered @ Tue Mar 23 17:46:43 CDT 2021
Triggered @ Tue Mar 23 17:46:53 CDT 2021
Triggered @ Tue Mar 23 17:47:03 CDT 2021
Triggered @ Tue Mar 23 17:47:13 CDT 2021
Triggered @ Tue Mar 23 17:48:05 CDT 2021
Triggered @ Tue Mar 23 17:48:15 CDT 2021
Remove a persistence mechanism: $ poisonapple -t LaunchAgentUser -n testing (https://www.kitploit.com/search/label/Testing) -r
...
Use a custom command: $ poisonapple -t LaunchAgentUser -n foo -c "echo foo >> /Users/user/Desktop/foo"
...
Download PoisonApple (https://github.com/CyborgSecurity/PoisonApple)
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
Hack The BoxβββTabby: Walkthrough (without Metasploit)
https://cdn-images-1.medium.com/max/600/1*Quvs4ttzF5hJvWFFZx04Wg.png
Hack The BoxβββTabby: Walkthrough (without Metasploit) | Road to OSCP | Linux Medium Level | tomcat | fcrackzip | lxd | Sandbox Escape
Continue reading on Medium Β»
Hack The BoxβββTabby: Walkthrough (without Metasploit)
https://cdn-images-1.medium.com/max/600/1*Quvs4ttzF5hJvWFFZx04Wg.png
Hack The BoxβββTabby: Walkthrough (without Metasploit) | Road to OSCP | Linux Medium Level | tomcat | fcrackzip | lxd | Sandbox Escape
Continue reading on Medium Β»
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
Bug Hunting 101: Nine Ways to Make Sure the Right People Read Your Bug Reports
https://cdn-images-1.medium.com/max/2440/0*HIaTCsGLTmk47cy1
Congrats you work in sales and marketing now.
Continue reading on Medium Β»
Bug Hunting 101: Nine Ways to Make Sure the Right People Read Your Bug Reports
https://cdn-images-1.medium.com/max/2440/0*HIaTCsGLTmk47cy1
Congrats you work in sales and marketing now.
Continue reading on Medium Β»
Is setting up 2 vlans and configuring iptables for devices to not interfere be enough to isolate an infected machine from my trusted devices and keep them secure?
https://www.reddit.com/r/redteamsec/comments/mns0mg/is_setting_up_2_vlans_and_configuring_iptables/
submitted by /u/WildSimple8048 (https://www.reddit.com/user/WildSimple8048)
[link] (https://www.reddit.com/r/redteamsec/comments/mns0mg/is_setting_up_2_vlans_and_configuring_iptables/) [comments] (https://www.reddit.com/r/redteamsec/comments/mns0mg/is_setting_up_2_vlans_and_configuring_iptables/)
https://www.reddit.com/r/redteamsec/comments/mns0mg/is_setting_up_2_vlans_and_configuring_iptables/
submitted by /u/WildSimple8048 (https://www.reddit.com/user/WildSimple8048)
[link] (https://www.reddit.com/r/redteamsec/comments/mns0mg/is_setting_up_2_vlans_and_configuring_iptables/) [comments] (https://www.reddit.com/r/redteamsec/comments/mns0mg/is_setting_up_2_vlans_and_configuring_iptables/)
Bug Bounty ReconβββTools And Resources
A Community built list of tools to help make recon a bit easierContinue reading on Medium Β»
Read more...
A Community built list of tools to help make recon a bit easierContinue reading on Medium Β»
Read more...
Bug Bounty ReconβββTools And Resources
https://thexssrat.medium.com/bug-bounty-recon-tools-and-resources-903f52318f5c?source=rss------bug_bounty-5
https://thexssrat.medium.com/bug-bounty-recon-tools-and-resources-903f52318f5c?source=rss------bug_bounty-5
A Community built list of tools to help make recon a bit easierContinue reading on Medium Β» (https://thexssrat.medium.com/bug-bounty-recon-tools-and-resources-903f52318f5c?source=rss------bug_bounty-5)
https://a.thumbs.redditmedia.com/gmWehZ_94kjS1xxtbzWuC5vkmg48PDvYzt2GXBi_H10.jpg Can an USB-TTL 5V Π‘ CH340G work as a rubber ducky?
β
https://preview.redd.it/57v4x388r8s61.png?width=334&format=png&auto=webp&s=e934ba64a4b563ec7480cbf915969fb4410619c5
Pretty new to small electronics so I'll need some help!
submitted by /u/MrAcho
[link] [comments]
β
https://preview.redd.it/57v4x388r8s61.png?width=334&format=png&auto=webp&s=e934ba64a4b563ec7480cbf915969fb4410619c5
Pretty new to small electronics so I'll need some help!
submitted by /u/MrAcho
[link] [comments]
Hacking Articles Tips Tricks Videos Tutorials
Photo
hacking: security in practice
Learn How Hackers Mirror Smartphones by Systemnest and Protect Your Device.
https://external-preview.redd.it/JK8nERsZ8g0j_A-8nz6CJ8T8V3vEXnGknDoGYmufbvI.jpg?width=320&crop=smart&auto=webp&s=97ec367d3d304b85228eeaac8051bc456d3cd6d4 submitted by /u/jatak007
[link] [comments]
Learn How Hackers Mirror Smartphones by Systemnest and Protect Your Device.
https://external-preview.redd.it/JK8nERsZ8g0j_A-8nz6CJ8T8V3vEXnGknDoGYmufbvI.jpg?width=320&crop=smart&auto=webp&s=97ec367d3d304b85228eeaac8051bc456d3cd6d4 submitted by /u/jatak007
[link] [comments]
Hacking Articles Tips Tricks Videos Tutorials
Photo
Dark Reading: Attacks/Breaches
CISA Launches New Threat Detection Dashboard
Aviary is a new dashboard that works with CISA's Sparrow threat detection tool.
CISA Launches New Threat Detection Dashboard
Aviary is a new dashboard that works with CISA's Sparrow threat detection tool.