Skip to main content

ref-audit — Manuscript Citation, Hallucination and Retraction Auditor

CI Status PyPI Runtime Dependencies: 0 Python 3.10+ License MIT

Live Browser Checker · How It Works · Verdicts · Quickstart · GitHub Action

ref-audit

Catch retracted papers, AI-hallucinated DOIs, hijacked DOI-to-title mismatches, and duplicate citations in .bib, .tex, .md, .txt, and .docx manuscripts before submission. Queries free, keyless Crossref + OpenAlex (Retraction Watch) + PubMed E-utilities APIs with 0 runtime dependencies (pure Python 3.10+ stdlib), native .docx Word XML parsing, CI GitHub Action, and a live browser checker.

Built by Shuhan He (https://github.com/ShuhanCS) and ConductScience (https://conductscience.com), published through ConductScience Foundation (https://conductsciencefoundation.org).

ATTRIBUTED TO & SUPPORTED BY

ConductScience   Shuhan He (@ShuhanCS)


How It Works

ref-audit 3-Registry Citation and Retraction Verification Pipeline


Try It Live in Your Browser (Zero Install)

Live Browser Checker: https://conductscience-foundation.github.io/ref-audit/

Paste any BibTeX bibliography or DOI list (or open a local .bib / .md / .tex file) directly in your browser to verify citations live against Crossref and OpenAlex:

ref-audit Live Browser Citation and Retraction Checker (Light and Dark Mode)


What ref-audit Catches

Verdict What It Detects How It Verifies
RETRACTED Papers retracted or carrying an Expression of Concern Crossref update-to / relation, OpenAlex is_retracted (Retraction Watch), and PubMed PublicationType
NOT_FOUND Fabricated or broken DOIs and PMIDs (common in LLM-assisted drafts) Live HTTP 404 verification across Crossref, OpenAlex, and NCBI PubMed
MISMATCH Hijacked real DOIs attached to the wrong title, author, or year Deterministic Jaccard title token overlap (< 0.45), first-author surname check, and publication year delta (> 1 year)
DUPLICATE Repeated DOIs, PMIDs, or BibTeX cite keys Exact normalized identifier deduplication across the full file
SUSPICIOUS Placeholder DOIs (10.1234/..., 10.0000/...), TODO/TBD titles, or incomplete BibTeX entries Deterministic offline syntax and completeness checks
VERIFIED Resolved cleanly in authoritative registries, not retracted, metadata consistent SHA-256 receipt of audited input file + authoritative title/year/source

Quickstart

Install CLI (Zero External Dependencies)

pip install cs-ref-audit

(Installs the ref-audit CLI command and ref_audit Python module.)

Or install from source for development:

git clone https://github.com/ConductScience-Foundation/ref-audit.git
cd ref-audit
python -m pip install -e ".[dev]"

Audit Any .bib, .tex, .md, .txt, or .docx File

# Audit the bundled 4-case BibTeX example live against Crossref + OpenAlex:
ref-audit examples/sample_manuscript.bib --fail-on none

# Audit a Word manuscript (.docx) directly (zero python-docx dependency needed):
ref-audit manuscript_draft.docx --markdown REF_AUDIT.md --json audit_receipt.json

# Run offline syntax, duplicate, and placeholder checks with zero network access:
ref-audit references.bib --offline
Inspect real live terminal output on examples/sample_manuscript.bib
ref-audit (live)  |  4 reference(s) checked
Summary: MISMATCH=1  NOT_FOUND=1  RETRACTED=1  VERIFIED=1

  [VERIFIED  ] wilkinson2016fair (L1) | 10.1038/sdata.2016.18
  [RETRACTED ] wakefield1998retracted (L9) | 10.1016/s0140-6736(97)11096-0
               -> Title begins with RETRACTED
  [NOT_FOUND ] hallucinated2025fake (L17) | 10.1038/s41586-025-99999-z
               -> Identifier not found in crossref: 10.1038/s41586-025-99999-z (possible hallucinated citation)
  [MISMATCH  ] hijacked2024mismatch (L25) | 10.1038/sdata.2016.18
               -> Duplicate DOI: 10.1038/sdata.2016.18
               -> Title mismatch (token overlap 0.00): claimed 'Completely Unrelated Paper Title Attached to a Real DOI' vs registry 'The FAIR Guiding Principles for scientific data management and stewardship'
               -> Year mismatch: claimed 2024 vs registry 2016
               -> Author mismatch: claimed first author 'fakename' not found in registry authors

Use as a GitHub Action

Gate manuscript repositories on every pull request so retracted or hallucinated references never slip into submission drafts:

- uses: actions/checkout@v4
- uses: ConductScience-Foundation/ref-audit@v0.1.0
  with:
    file: "references.bib"
    fail-on: "retracted,not_found,mismatch"
    markdown-out: "REF_AUDIT.md"

Scope Boundary

  • In scope: fast verification of DOIs, PMIDs, and BibTeX metadata across .bib, .tex, .md, .txt, and .docx files using free public registries (Crossref, OpenAlex, PubMed).
  • Out of scope: full-text PDF reference extraction, paywalled bibliographic databases, or verifying claims inside cited papers (for passage-level claim verification, see https://github.com/ConductScience-Foundation/conducttraining).

Running Tests (100% Offline & Deterministic)

python -m pip install -e ".[dev]"
python -m pytest -v

Metadata

Release files for cs-ref-audit 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cs-ref-audit 0.1.0
File Size Uploaded Provenance Actions
cs_ref_audit-0.1.0.tar.gz 16.8 kB Without provenance Details for cs_ref_audit-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cs-ref-audit 0.1.0
File Interpreter ABI Platform Actions
cs_ref_audit-0.1.0-py3-none-any.whl Python 3 none any Details for cs_ref_audit-0.1.0-py3-none-any.whl

Total release size: 33.5 kB

Release files / cs_ref_audit-0.1.0.tar.gz

Download URL cs_ref_audit-0.1.0.tar.gz
Size 16.8 kB
Tags Source
SHA-256 checksum
How to use checksums
84d7aa891aa9e3930b998c8bb0ade89001053e6a09fcf01bd4653ae98254fd96
BLAKE2b-256 checksum
How to use checksums
c472e31517edae7a478d7e234195513eee60c84e8a4716383d4fef2fdf4437e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / cs_ref_audit-0.1.0-py3-none-any.whl

Download URL cs_ref_audit-0.1.0-py3-none-any.whl
Size 16.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b9cbdae8ca31f9e82e0db19014908f10b86f4c6f5381684b7cecc3082d8a88f0
BLAKE2b-256 checksum
How to use checksums
b06546c4cfeb84047c52cc5627300a0e24c5b6bc090a057475f25ff6dbf1864b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for cs-ref-audit 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page