US-CERT- AA21-077A: Detecting Post-Compromise Threat Activity Using the CHIRP IOC Detection Tool

Started by Netwörkheäd, March 22, 2021, 06:10:48 AM

Previous topic - Next topic

Netwörkheäd

AA21-077A: Detecting Post-Compromise Threat Activity Using the CHIRP IOC Detection Tool

Original release date: March 18, 2021<br/><h3>Summary</h3><p>This Alert announces the CISA Hunt and Incident Response Program (CHIRP) tool. CHIRP is a forensics collection tool that CISA developed to help network defenders find indicators of compromise (IOCs) associated with activity detailed in the following CISA Alerts:</p>

<ul>
<li>AA20-352A: <a href="https://us-cert.cisa.gov/ncas/alerts/aa20-352a">Advanced Persistent Threat Compromise of Government Agencies, Critical Infrastructure, and Private Sector Organizations</a>, which primarily focuses on an advanced persistent threat (APT) actor's compromise of SolarWinds Orion products affecting U.S. government agencies, critical infrastructure entities, and private network organizations.</li>
</ul>

<ul>
<li>AA21-008A: <a href="https://us-cert.cisa.gov/ncas/alerts/aa21-008a">Detecting Post-Compromise Threat Activity in Microsoft Cloud Environments</a>, which addresses APT activity within Microsoft 365/Azure environments and offers an overview of—and guidance on—available open-source tools. The Alert includes the <a href="https://github.com/cisagov/Sparrow">CISA-developed Sparrow tool </a>that helps network defenders detect possible compromised accounts and applications in the Azure/M365 environment.</li>
</ul>

<p>Similar to <a href="https://github.com/cisagov/Sparrow">Sparrow</a>—which scans for signs of APT compromise within an M365 or Azure environment—CHIRP scans for signs of APT compromise within an on-premises environment.</p>

<p>In this release, CHIRP, by default, searches for IOCs associated with malicious activity detailed in AA20-352A and AA21-008A that has spilled into an on-premises enterprise environment.</p>

<p>CHIRP is freely available on the <a href="https://github.com/cisagov">CISA GitHub Repository</a>. For additional guidance watch CISA's <a href="https://www.youtube.com/watch?v=UGYSNiNOpds">CHIRP Overview video</a>.&nbsp;<strong>Note:</strong> CISA will continue to release plugins and IOC packages for new threats via the CISA GitHub Repository.</p>

<p>CISA advises organizations to use CHIRP to:</p>

<ul>
<li>Examine Windows event logs for artifacts associated with this activity;</li>
<li>Examine Windows Registry for evidence of intrusion;</li>
<li>Query Windows network artifacts; and</li>
<li>Apply YARA rules to detect malware, backdoors, or implants.</li>
</ul>

<p>Network defenders should review and confirm any post-compromise threat activity detected by the tool. CISA has provided confidence scores for each IOC and YARA rule included with CHIRP's release. For confirmed positive hits, CISA recommends collecting a forensic image of the relevant system(s) and conducting a forensic analysis on the system(s).</p>

<p>If an organization does not have the capability to follow the guidance in this Alert, consider soliciting third-party IT security support. <strong>Note</strong>: Responding to confirmed positive hits is essential to evict an adversary from a compromised network.</p>

<p><a href="https://us-cert.cisa.gov/sites/default/files/publications/AA21-077A-Detecting_Post-Compromise_Threat_Activity_Using_CHIRP_508%20(1).pdf">Click here</a> for a PDF version of this report.</p>
<h3>Technical Details</h3><h4>How CHIRP Works</h4>

<p>CHIRP is a command-line executable with a dynamic plugin and indicator system to search for signs of compromise. CHIRP has plugins to search through event logs and registry keys and run YARA rules to scan for signs of APT tactics, techniques, and procedures. CHIRP also has a YAML file that contains a list of IOCs that CISA associates with the malware and APT activity detailed in CISA Alerts <a href="https://us-cert.cisa.gov/ncas/alerts/aa20-352a">AA20-352A</a> and <a href="https://us-cert.cisa.gov/ncas/alerts/aa21-008a">AA21-008A</a>.</p>

<p>Currently, the tool looks for:</p>

<ul>
<li>The presence of malware identified by security researchers as <a href="https://us-cert.cisa.gov/ncas/analysis-reports/ar21-039b">TEARDROP</a> and RAINDROP;</li>
<li>Credential dumping certificate pulls;</li>
<li>Certain persistence mechanisms identified as associated with this campaign;</li>
<li>System, network, and M365 enumeration; and</li>
<li>Known observable indicators of lateral movement.</li>
</ul>

<p>Network defenders can follow step-by-step instructions on the <a href="https://github.com/cisagov/CHIRP">CISA CHIRP GitHub repository</a>&nbsp;to add additional IOCs, YARA rules, or plugins to CHIRP to search for post-compromise threat activity related to the SolarWinds Orion supply chain compromise or new threat activity.</p>

<h4><strong>Compatibility</strong></h4>

<p>CHIRP currently only scans Windows operating systems.</p>

<h4><strong>Instructions</strong></h4>

<p>CHIRP is available on CISA's GitHub repository in two forms:</p>

<ol>
<li>
<p>A compiled executable</p>
</li>
<li>
<p>A python script</p>
</li>
</ol>

<p>CISA recommends using the compiled version to easily scan a system for APT activity. For instructions to run, read the README.md in the CHIRP GitHub repository.</p>

<p>If you choose to use the native Python version, see the detailed instructions on the CHIRP GitHub repository.</p>
<h3>Mitigations</h3><h4>Interpreting the Results</h4>

<p>CHIRP provides results of its scan in JSON format. CISA encourages uploading the results into a security information and event management (SIEM) system, if available. If no SIEM system is available, results can be viewed in a compatible web browser or text editor. If CHIRP detects any post-compromise threat activity, those detections should be reviewed and confirmed. CISA has provided confidence scores for each IOC and YARA rule included with CHIRP's release. For confirmed positive hits, CISA recommends collecting a forensic image of the relevant system(s) and conducting a forensic analysis on the system(s).</p>

<p>If you do not have the capability to follow the guidance in this Alert, consider soliciting third-party IT security support. <strong>Note:</strong> Responding to confirmed positive hits is essential to evict an adversary from a compromised network.</p>

<h4><strong>Frequently Asked Questions</strong></h4>

<ol>
<li><strong>What systems should CHIRP run on?</strong>

<p>Systems running SolarWinds Orion or believed to be involved in any resulting lateral movement.</p>
</li>
<li><strong>What should I do with results?</strong>
<p>Ingest the JSON results into a SIEM system, web browser, or text editor.</p>
</li>
<li><strong>Are there existing tools that CHIRP complements and/or provide the same benefit as CHIRP?</strong>
<ol type="a">
<li>
<p>Antivirus software developers may have begun to roll out detections for the SolarWinds post-compromise activity. However, those products can miss historical signs of compromise. CHIRP can provide a complementary benefit to antivirus when run.</p>
</li>
<li>
<p>CISA previously released the Sparrow tool that scans for APT activity within M365 and Azure environments related to activity detailed in CISA Alerts AA20-352A and AA21-008A. CHIRP provides a complementary capability to Sparrow by scanning for on-premises systems for similar activity.</p>
</li>
</ol>
</li>
<li><strong>How often should I run CHIRP?</strong>
<p>CHIRP can be run once or routinely. Currently, CHIRP does not provide a mechanism to run repeatedly in its native format.</p>
</li>
<li><strong>Do I need to configure the tool before I run it?</strong>
<p>No.</p>
</li>
<li><strong>Will CHIRP change or affect anything on the system(s) it runs on?</strong>
<p>No, CHIRP only scans the system(s) it runs on and makes no active changes.</p>
</li>
<li><strong>How long will it take to run CHIRP?</strong>
<p>CHIRP will complete its scan in approximately 1 to 2 hours. Duration will be dependent on the level of activity, the system, and the size of the resident data sets. CHIRP will provide periodic progress updates as it runs.</p>
</li>
<li><strong>If I have questions, who do I contact?&nbsp;&nbsp;</strong>
<p>For general questions regarding CHIRP, please contact CISA via email at <a href="https://us-cert.cisa.govmailto:central@cisa.dhs.gov">central@cisa.dhs.gov</a> or by phone at 1-888-282-0870. For reporting indicators of potential compromise, contact us by submitting a report through our website at <a href="https://us-cert.cisa.gov/report">https://us-cert.cisa.gov/report</a>. For all technical issues or support for CHIRP, please submit issues at the <a href="https://github.com/cisagov/CHIRP">CISA CHIRP GitHub Repository</a>.&nbsp;</p>
</li>
</ol>
            <h3>Revisions</h3>
<ul>             <li>March 18, 2021: Initial Publication </li> </ul>
<hr />
            <div class="field field--name-body field--type-text-with-summary field--label-hidden field--item"><p class="privacy-and-terms">This product is provided subject to this <a href="https://us-cert.cisa.gov/privacy/notification">Notification</a> and this <a href="https://www.dhs.gov/privacy-policy">Privacy &amp; Use</a> policy.</p>


</div>
Source: AA21-077A: Detecting Post-Compromise Threat Activity Using the CHIRP IOC Detection Tool
Let's not argue. Let's network!