# cisagov/Sparrow

Sparrow.ps1 was created by CISA's Cloud Forensics team to help detect possible compromised accounts and applications in the Azure/m365 environment.

Repository: https://github.com/cisagov/Sparrow
Canonical: https://ross.abutalabs.com/products/cisagov-sparrow
Language: PowerShell
License: CC0-1.0
License Family: permissive
Archived: true
Last push: 2022-12-27T14:54:45+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2078, "days_push": 1345, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1430, forks 184 (observed 2026-08-28T04:04:42.285400+00:00)

## What it is
Sparrow.ps1 is a PowerShell script from CISA's Cloud Forensics team that helps incident responders detect possibly compromised accounts and applications in Azure/Microsoft 365 environments. It checks the unified audit log for indicators of compromise, lists Azure AD domains, and inspects service principals and Graph API permissions, exporting results to CSV files.

## Use cases
- detect compromised accounts in azure m365
- hunt for solarwinds-style identity attacks in my tenant
- audit azure ad service principals and graph api permissions
- check unified audit log for indicators of compromise
- investigate suspicious application activity in office 365
- export m365 audit findings to csv for analysis

## When to choose
- you are an incident responder investigating identity or authentication-based attacks in an Azure/M365 tenant
- you need a read-only sweep of unified audit logs, Azure AD domains, and service principals
- you want CSV outputs you can feed into a dashboard like Aviary or analyze manually

## When to avoid
- you need actively maintained tooling - the repo was archived in December 2022 and is no longer maintained
- you require comprehensive cloud security monitoring beyond the narrow scope of federated identity and application attacks
- your tenant lacks the required E5/G5 license or unified audit logging, which some checks depend on

## Facets
- artifact type: cli-tool
- maturity: abandoned
- function: security, monitoring, developer-tools
- domain: security, cloud-computing, developer-tools
- platform: windows, cli, cloud
- tags: azure, m365, incident-response, forensics, powershell, threat-hunting, solarwinds, azure-ad, unified-audit-log, csv-export, cisa, archived

## Member repositories
- cisagov/Sparrow (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:42.285400+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:37:11.374170+00:00, confidence not recorded.
  - readme: https://github.com/cisagov/Sparrow (fetched 2026-08-28T04:04:42.285400+00:00, sha b1bf6b0ce1c8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
