richiercyrus / venator Goto Github PK
View Code? Open in Web Editor NEW[⛔️ Deprecated] Venator is a python tool used to gather data for proactive detection of malicious activity on macOS devices.
License: GNU General Public License v3.0
[⛔️ Deprecated] Venator is a python tool used to gather data for proactive detection of malicious activity on macOS devices.
License: GNU General Public License v3.0
Encountered this issue when running Venator on macOS 10.14.4 and current Chrome version (74.0.3729.131
):
[+] Gathering Chrome Extensions data.
Traceback (most recent call last):
File "Venator.py", line 728, in <module>
getChromeExtensions(chromeEx,outfile)
File "Venator.py", line 308, in getChromeExtensions
extensions.update({"extension_update_url":manifest_json.get("update_url").strip('u\'')})
AttributeError: 'NoneType' object has no attribute 'strip'
getting error below:
$ python -V
Python 2.7.16
$ sudo /usr/bin/python ./Venator.py
Password:
\
\ \ / /__ _ __ __ | | ___ _ __
\ \ / / _ \ '_ \ / ` | / _ | '|
\ V / __/ | | | (| | || () | |
_/ ___|| ||_,|____/|_|
[+] Gathering users on the system.
[+] Gathering System Intergrity Protection status.
[+] Getting system information.
[+] Gathering Install History data.
[+] Gathering Gatekeeper status.
[+] Gathering current network connections.
[+] Gathering Environment Variables.
[+] Gathering Periodic Scripts.
[+] Gathering current cron jobs.
[+] Gathering Emond Rules.
[+] Gathering Launch Agent data.
[+] Gathering any shell startup scripts ('~/.bash_profile', etc.)
[+] Gathering Launch Daemon data.
[+] Gathering Kernel Extensions data.
[+] Gathering Applications for each user.
[+] Gathering installed Event Taps.
[+] Gathering Bash History data.
[+] Gathering Launch Agent data.
Traceback (most recent call last):
File "./Venator.py", line 725, in
getLaunchAgents(userLaunchAgent,outfile)
File "./Venator.py", line 231, in getLaunchAgents
parsedAgent.update({"module":"launch_agents"})
AttributeError: 'NoneType' object has no attribute 'update'
Password:
__ __ _
\ \ / /__ _ __ __ _| |_ ___ _ __
\ \ / / _ \ '_ \ / _` | __/ _ \| '__|
\ V / __/ | | | (_| | || (_) | |
\_/ \___|_| |_|\__,_|\__\___/|_|
[+] Gathering users on the system.
[+] Gathering System Intergrity Protection status.
[+] Getting system information.
[+] Gathering Install History data.
[+] Gathering Gatekeeper status.
[+] Gathering current network connections.
[+] Gathering Environment Variables.
[+] Gathering Periodic Scripts.
[+] Gathering current cron jobs.
[+] Gathering Emond Rules.
[+] Gathering Launch Agent data.
[+] Gathering any shell startup scripts ('~/.bash_profile', etc.)
[+] Gathering Launch Daemon data.
Traceback (most recent call last):
File "/Users/user/Desktop/Venator-master/Venator.py", line 710, in <module>
getLaunchDaemons('/Library/LaunchDaemons',outfile),getKext(sipStatus,'/Library/Extensions',outfile),getApps('/Applications',outfile),getEventTaps(outfile),getBashHistory(outfile,lst_of_users)]
File "/Users/user/Desktop/Venator-master/Venator.py", line 243, in getLaunchDaemons
parsedDaemon = parseAgentsDaemons(daemon,path)
File "/Users/user/Desktop/Venator-master/Venator.py", line 184, in parseAgentsDaemons
parsedPlist.update({'plist_format_error': ("Error parsing %s with hash %s" % (plist_file,getHash(plist_file)))})
File "/Users/user/Desktop/Venator-master/Venator.py", line 66, in getHash
with open(file, 'rb') as afile:
IOError: [Errno 21] Is a directory: '/Library/LaunchDaemons/.com.bomgar.bomgar-ps-581796C0-1477945319.helper'```
Adding a requirements.txt file to have the ability to execute pip to install the required packages:
pip install -r requirements.txt
Most of the libraries are standard python libraries but others are not:
os
datetime
logging
math
sys
plistlib
string
struct
xml.parsers.expat
subprocess
json
socket
Foundation
Quartz
argparse
ctypes
ctypes.util
objc
platform
time
hashlib
This is also running on python2.
Here's the output:
[+] Gathering Kernel Extensions data.
Traceback (most recent call last):
File "~/.local/bin/Venator.py", line 620, in <module>
getLaunchDaemons('/Library/LaunchDaemons',outfile),getKext(sipStatus,'/Library/Extensions',outfile),getApps('/Applications',outfile),getEventTaps(outfile),getBashHistory(outfile,lst_of_users)]
File "~/.local/bin/Venator.py", line 384, in getKext
kextPlist = plistlib.readPlist(os.path.join(root, name))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plistlib.py", line 78, in readPlist
rootObject = p.parse(pathOrFile)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plistlib.py", line 406, in parse
parser.ParseFile(fileobj)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 1, column 8
Hi, I'm getting this error when running the script on MacOS Mojave. Thanks for your help
`[+] Gathering users on the system.
[+] Gathering System Intergrity Protection status.
[+] Getting system information.
[+] Gathering Install History data.
[+] Gathering Gatekeeper status.
[+] Gathering current network connections.
[+] Gathering Environment Variables.
[+] Gathering Periodic Scripts.
[+] Gathering current cron jobs.
[+] Gathering Emond Rules.
[+] Gathering Launch Agent data.
[+] Gathering Launch Daemon data.
[+] Gathering Kernel Extensions data.
[+] Gathering Applications for each user.
[+] Gathering installed Event Taps.
[+] Gathering Bash History data.
[+] Gathering Launch Agent data.
[+] Gathering Chrome Extensions data.
[+] Gathering Firefox Extensions data.
[+] Gathering Safari Extensions data.
[+] Gathering Login Items for each user.
[+] Gathering Applications for each user.
[+] Gathering Launch Agent data.
[+] Gathering Chrome Extensions data.
[+] Gathering Firefox Extensions data.
[+] Gathering Applications for each user.
[!!!!!] System Integrity Protection is disabled. Gathering additional data launch agent/daemon data.
[+] Gathering Launch Agent data.
[+] Gathering Launch Daemon data.
Traceback (most recent call last):
File "./Venator.py", line 674, in
output_list.append(getLaunchDaemons('/System/Library/LaunchDaemons',outfile))
File "./Venator.py", line 220, in getLaunchDaemons
parsedDaemon = parseAgentsDaemons(daemon,path)
File "./Venator.py", line 194, in parseAgentsDaemons
parsedPlist.update({"signing_info":checkSignature(progExecutable)})
UnboundLocalError: local variable 'progExecutable' referenced before assignment`
Could you add the host UUID as an additional field along with the hostname? I have found hostnames can change more often then I would like, which can make correlating data across different runs over a longer period of time a bit complicated.
Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.