https://github.com/EXC3L-ONE/synapse-iocparser
Synapse Rapid Power-Up for iocparser.com
https://github.com/EXC3L-ONE/synapse-iocparser
storm vertex-synapse
Last synced: 24 days ago
JSON representation
Synapse Rapid Power-Up for iocparser.com
- Host: GitHub
- URL: https://github.com/EXC3L-ONE/synapse-iocparser
- Owner: EXC3L-ONE
- License: mit
- Created: 2023-09-05T09:40:23.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-07T13:33:59.000Z (over 1 year ago)
- Last Synced: 2024-11-11T17:45:50.703Z (6 months ago)
- Topics: storm, vertex-synapse
- Homepage:
- Size: 21.5 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Synapse IOC Parser
This Synapse Rapid Power-up adds support for using the `iocparser.com` service for quick ingestion of IOCs into Synapse from raw text and URLs.**This extension is in WIP stage**
## Usage
There are 2 commands available:
### `ex.iocparser.url`
For a given inbound `inet:url` fetches and parses IOCs from the page, creating a `media:news` node as well as the following other nodes:
- `inet:fqdn`
- `inet:ipv6`
- `inet:ipv4`
- `inet:email`
- `file:base`
- `inet:url`
- `hash:md5`
- `hash:sha1`
- `hash:sha256`
- `inet:asn`
- `it:sec:cve`
- `inet:mac`Optionally takes a `--yield` argument to yield the generated nodes instead of the inbound `inet:url`.
#### Example:
`[inet:url=https://pylos.co/2022/11/23/detailing-daily-domain-hunting/] | ex.iocparser.url --yield`---
### `ex.iocparser.text`
Scrapes text provided as a command line argument, creates an `it:exec:query` node and scrapes the same types of IOCs as `ex.iocparser.url`##### Example:
`ex.iocparser.text "example.com 1.1.1.1"`---
## Installation
The easiest way to use this Power-Up is to load the JSON package into the Cortex by running:`pkg.load --raw "https://raw.githubusercontent.com/EXC3L-ONE/synapse-iocparser/main/synapse_iocparser.json"`
Alternatively, you can also clone this repo, and load the package via `python -m synapse.tools.genpkg` (see reference in Synapse docs [here](https://synapse.docs.vertex.link/en/latest/synapse/userguides/syn_tools_genpkg.html#building-the-example-package))