Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cisagov/CHIRP
A DFIR tool written in Python.
https://github.com/cisagov/CHIRP
cisa cybersecurity dfir ioc python yara-python
Last synced: about 2 months ago
JSON representation
A DFIR tool written in Python.
- Host: GitHub
- URL: https://github.com/cisagov/CHIRP
- Owner: cisagov
- License: cc0-1.0
- Archived: true
- Created: 2021-03-18T17:29:55.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-06-09T20:12:04.000Z (over 3 years ago)
- Last Synced: 2024-09-27T02:03:40.469Z (4 months ago)
- Topics: cisa, cybersecurity, dfir, ioc, python, yara-python
- Language: Python
- Homepage:
- Size: 1.12 MB
- Stars: 1,039
- Watchers: 52
- Forks: 91
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
#
CHIRP
[![Status](https://img.shields.io/badge/status-archived-red.svg)]()
[![GitHub Issues](https://img.shields.io/github/issues/cisagov/chirp.svg)](https://github.com/cisagov/chirp/issues)
[![GitHub Pull Requests](https://img.shields.io/github/issues-pr/cisagov/chirp.svg)](https://github.com/cisagov/chirp/pulls)
[![License](https://img.shields.io/badge/license-CC0_1.0-blue.svg)](/LICENSE)---
A DFIR tool written in Python.
Watch the video overview
## π Table of Contents
- [π Table of Contents](#-table-of-contents-)
- [π§ About](#-about)
- [π Getting Started](#-getting-started-)
- [Prerequisites](#prerequisites)
- [Installing](#installing)
- [π Usage](#-usage-)
- [βοΈ Built Using](#οΈ-built-using-)
- [βοΈ Authors](#οΈ-authors-)
- [π Acknowledgements](#-acknowledgements-)
- [π€ Contributing](#-contributing-)
- [π License](#-license-)
- [βοΈ Legal Disclaimer](#οΈ-legal-disclaimer-)## π§ About
The CISA Hunt and Incident Response Program (CHIRP) is a tool created to
dynamically query Indicators of Compromise (IoCs) on hosts with a single
package, outputting data in a JSON format for further analysis in a SIEM
or other tool. CHIRP does not modify any system data.We build and release CHIRP via
[`Releases`](https://github.com/cisagov/chirp/releases).
However, if you wish to run with Python3.6+, follow these instructions.You can also write new
[indicators](https://github.com/cisagov/CHIRP/blob/main/indicators/README.md)
or [plugins](https://github.com/cisagov/CHIRP/blob/main/chirp/plugins/README.md)
for CHIRP.### Prerequisites
Python 3.6 or greater is required to run CHIRP with Python. If you need help
installing Python in your environment, follow the instructions
[here](https://docs.Python.org/3/using/windows.html)CHIRP must be run on a live machine, but it does not have to be network connected.
### Installing
```console
python3 -m pip install -e .
```> In our experience, yara-python comes with some other dependencies. You MAY have
to install Visual Studio C++ 14.0 and the Windows 10 SDK, this can be retrieved
with [Visual Studio Community](https://visualstudio.microsoft.com/vs/community/)### From [release](https://github.com/cisagov/chirp/releases)
```console
# defaults
.\chirp.exe -a AA21-008A# with args
.\chirp.exe -a AA21-062A -p registry yara -t c:\\target_dir\\** -o chirp_result --non-interactive -vv
```### From python
```console
# defaults
python3 chirp.py -a AA21-008A# with args
python3 chirp.py -a AA21-062A -p registry yara -t c:\\target_dir\\** -o chirp_result --non-interactive -vv
```### Example output
```console
[15:32:19] [YARA] Enumerating the entire filesystem due to ['CISA Solar Fire', 'CISA Teardrop', 'CrowdStrike Rempack', 'CrowdStrike Sunspot', 'FireEye common.py:103
Cosmic Gale', 'FireEye Sunburst']... this is going to take a while.
[YARA] Entered yara plugin. common.py:103
[REGISTRY] Found 0 hit(s) for IFEO Persistence indicator. common.py:103
[REGISTRY] Found 0 hit(s) for Teardrop - Registry Activity indicator. common.py:103
[REGISTRY] Found 0 hit(s) for Sibot - Registry indicator.
...
...
...
[+] Done! Your results can be found at Z:\README\output.
```### Non-interactive Mode
Non-interactive mode may be used by issuing the "--non-interactive" flag at runtime. Using this flag enables process completion without input. In addition, a non-zero status of 1 will be emitted at runtime completion if IoC's were discovered.
- [Python](https://www.Python.org/) - Language
- [Nuitka](https://nuitka.net/) - For compilation
- [evtx2json](https://github.com/vavarachen/evtx2json) - For event log access
- [yara-python](https://github.com/VirusTotal/yara-python) - Parses and runs yara
rules
- [rich](https://github.com/willmcgugan/rich) - Makes the CLI easier on the eyes
- [psutil](https://github.com/giampaolo/psutil) - Provides an easy API for many
OS functions
- [aiomp](https://pypi.org/project/aiomultiprocess/) - Asynchronous multiprocessing
- [pyyaml](https://pyyaml.org/) - Allows YAML interpretation- [Will Deem, OS1 USCG](https://github.com/deemonsecurity)
- [Jordan Mussman](https://github.com/jklm264)- Denise Keating
- Liana Parakesyan
- Richard Kenny
- Megan Nadeau
- Ewa Dadok
- David Zito
- Chris Brown
- [Julian Blanco, LTJG USCG](https://github.com/julianblanco)
- [Caleb Stewart, LT USCG](https://github.com/calebstewart)
- James HaughomWe welcome contributions! Please see [here](CONTRIBUTING.md) for details.
This project is in the worldwide [public domain](LICENSE).
This project is in the public domain within the United States, and copyright and
related rights in the work worldwide are waived through the
[CC0 1.0 Universal public domain dedication](https://creativecommons.org/publicdomain/zero/1.0/).All contributions to this project will be released under the CC0 dedication. By
submitting a pull request, you are agreeing to comply with this waiver of
copyright interest.NOTICE
This software package (βsoftwareβ or βcodeβ) was created by the United States
Government and is not subject to copyright within the United States. All other
rights are reserved. You may use, modify, or redistribute
the code in any manner. However, you may not subsequently copyright the code as
it is distributed. The United States Government makes no claim of copyright on
the changes you effect, nor will it restrict your distribution of bona fide
changes to the software. If you decide to update or redistribute the code, please
include this notice with the code. Where relevant, we ask that you credit the
Cybersecurity and Infrastructure Security Agency with the following statement:
βOriginal code developed by the Cybersecurity and Infrastructure Security Agency
(CISA), U.S. Department of Homeland Security.βUSE THIS SOFTWARE AT YOUR OWN RISK. THIS SOFTWARE COMES WITH NO WARRANTY, EITHER
EXPRESS OR IMPLIED. THE UNITED STATES GOVERNMENT ASSUMES NO LIABILITY FOR THE
USE OR MISUSE OF THIS SOFTWARE OR ITS DERIVATIVES.THIS SOFTWARE IS OFFERED βAS-IS.β THE UNITED STATES GOVERNMENT WILL NOT INSTALL,
REMOVE, OPERATE OR SUPPORT THIS SOFTWARE AT YOUR REQUEST. IF YOU ARE UNSURE OF
HOW THIS SOFTWARE WILL INTERACT WITH YOUR SYSTEM, DO NOT USE IT.