Metadata-Version: 2.5
Name: spoofscore
Version: 0.1.0
Summary: Can someone send email pretending to be your domain? SPF and DMARC posture check
Project-URL: Homepage, https://github.com/xeroxzen/spoofscore
Project-URL: Documentation, https://github.com/xeroxzen/spoofscore/tree/main/docs
Project-URL: Issues, https://github.com/xeroxzen/spoofscore/issues
Project-URL: Changelog, https://github.com/xeroxzen/spoofscore/blob/main/CHANGELOG.md
Author-email: Andile Mbele <andilembele020@gmail.com>
License-Expression: MIT
License-File: LICENSE
Keywords: dmarc,email,security,spf,spoofing
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Security
Classifier: Typing :: Typed
Requires-Python: >=3.10
Requires-Dist: dnspython>=2.6
Description-Content-Type: text/markdown

# spoofscore

**Can someone send email pretending to be your company?**

spoofscore reads a domain's public SPF and DMARC records and answers that question in plain language, with the exact record to publish to fix each problem.

```console
$ spoofscore example.com
example.com: PROTECTED
  Unlikely: receivers are told to reject or quarantine forged mail.
  DMARC: v=DMARC1;p=reject;sp=reject;adkim=s;aspf=s
  SPF:   v=spf1 -all
  [low] DMARC_NO_REPORTS: No aggregate report address (rua), so nobody sees who sends mail as this domain.
      fix: Add rua=mailto:<reports address>.
```

It comes in two forms that share one rule set:

- **A static web page** (`web/`) that anyone can use, live at <https://xeroxzen.github.io/spoofscore/>. The browser queries public DNS through Cloudflare's DNS-over-HTTPS, so there's no server to run.
- **A Python CLI and library** for scripts, batch checks and CI.

## Install

```bash
uv tool install spoofscore
```

Or run it once without installing: `uvx spoofscore example.com`. Requires Python 3.10 or later.

## Documentation

- [Get started](https://github.com/xeroxzen/spoofscore/blob/main/docs/get-started.md): check a domain from the web page, the CLI or Python.
- Concepts
  - [How email spoofing is stopped](https://github.com/xeroxzen/spoofscore/blob/main/docs/concepts/how-spoofing-is-stopped.md): SPF, DMARC and alignment in one page.
- How-to guides
  - [Move a domain to `p=reject` safely](https://github.com/xeroxzen/spoofscore/blob/main/docs/how-to/move-to-p-reject.md)
  - [Check many domains in CI](https://github.com/xeroxzen/spoofscore/blob/main/docs/how-to/check-domains-in-ci.md)
  - [Host the web page](https://github.com/xeroxzen/spoofscore/blob/main/docs/how-to/host-the-web-page.md)
- Reference
  - [Checks](https://github.com/xeroxzen/spoofscore/blob/main/docs/reference/checks.md): every finding, why it matters and how to fix it.
  - [CLI](https://github.com/xeroxzen/spoofscore/blob/main/docs/reference/cli.md)
  - [Python API](https://github.com/xeroxzen/spoofscore/blob/main/docs/reference/python-api.md)
- [Troubleshooting](https://github.com/xeroxzen/spoofscore/blob/main/docs/troubleshooting.md)
- [Changelog](https://github.com/xeroxzen/spoofscore/blob/main/CHANGELOG.md)

## Verdicts

| Verdict | Meaning |
|---|---|
| `exposed` | No effective DMARC enforcement, or SPF that passes everyone. Forged mail is likely to be delivered. |
| `partial` | Enforcement exists but has gaps. Some forged mail is delivered. |
| `protected` | `p=reject` or `p=quarantine` applies to all mail. |

## What it doesn't check

DKIM (selectors can't be listed from DNS), nested SPF `include:` lookups, lookalike domains, and mailbox security. A `protected` verdict means the domain's published policy is sound. It doesn't mean every mail system honours it.

## Contributing and security

See [CONTRIBUTING.md](https://github.com/xeroxzen/spoofscore/blob/main/CONTRIBUTING.md) and [SECURITY.md](https://github.com/xeroxzen/spoofscore/blob/main/SECURITY.md).

## License

[MIT](https://github.com/xeroxzen/spoofscore/blob/main/LICENSE)
