IOC Parser is a tool to extract indicators of compromise from security reports in PDF format. A good collection of APT related reports with many IOCs can be found here: APTNotes.
iocp [-h] [-p INI] [-i FORMAT] [-o FORMAT] [-d] [-l LIB] FILE
- FILE File/directory path to report(s)/Gmail account in double quotes ("username@gmail.com password")
- -p INI Pattern file
- -i FORMAT Input format (pdf/txt/docx/html/csv/xls/xlsx/gmail)
- -o FORMAT Output format (csv/json/yara/netflow)
- -d Deduplicate matches
- -l LIB Parsing library
pip install ioc_parser
One of the following PDF parsing libraries:
For HTML parsing support:
- BeautifulSoup - pip install beautifulsoup4
For HTTP(S) support:
- requests - pip install requests
For XLS/XLSX support:
- xlrd - pip install xlrd
For Gmail support: