Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

hoglint

Latest version: v0.2.5

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
PyPI package Publisher: org:PostHog
0 Stars
0 Forks
7 Versions
180.1K Downloads
Python Repo language

Scan summary

hoglint was last scanned on 24 Nov 2026 at version 0.2.5. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 7 versions; the latest 5 were published within 7 days (18–24 Nov 2026).
  • Findings: No rules fired in version 0.2.5.
  • Downloads: 180,104 downloads.

Versions

7 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.2.5 LATEST 24 Nov 2026 No rules fired
0.2.4 20 Nov 2026 No rules fired
0.2.3 18 Nov 2026 No rules fired
0.2.2 18 Nov 2026 Not shown
0.2.1 18 Nov 2026 Not shown

No rules fired in 0.2.5

Findings

Findings for v0.2.5. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.2.5; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Hoglint

Hoglint is a boundary linter for large Python and Django monorepos, built at PostHog.

It reads every Python file of a repo and builds one graph of the couplings between its packages: imports, dotted paths in strings, Django model and settings references, and more. It checks that graph against rules that you write in TOML. Existing violations go into a generated ledger file, so a rule can block new problems on the first day, before the old ones are fixed.

A Rust engine extracts the facts and judges the rules. A thin Python command line runs it.

Install

uv add --dev hoglint
uv run hoglint check

The wheel holds the Python package, the native module and the fact extractor, so you do not need a Rust toolchain. Wheels exist for Linux (x86_64 and aarch64, manylinux) and macOS (arm64 and x86_64). Hoglint needs Python 3.14 or newer.

Configure

Hoglint reads hoglint.toml at the root of the repo. The config can extend the built-in Django pack (extends = ["hoglint:django"]) and presets of your own. hoglint explain-config prints the expanded config, with the source of each key.

Commands

Command What it does
hoglint check Runs every rule on the working tree.
hoglint check --index Checks the staged snapshot. This is what the pre-commit hook runs.
hoglint check --write-ledger Rewrites the ledger from the scan. It adds new lines only with --record-growth. It keeps the level line of a group that no longer passes the level and exits 1; a person who lets the group lose the level passes --drop-levels.
hoglint ledger shrink Removes stale ledger lines. It never adds a line. It keeps the level line of a group that no longer passes the level and exits 1; a person who lets the group lose the level passes --drop-levels.
hoglint compare --base <ref> Checks a pull request against the merge base of <ref>.
hoglint explain <rule> Prints the page of a rule. It also explains the labels of a path or module.
hoglint query --by owners Lists open findings and accepted debt, grouped by owners, by target or by package (--by package, the package label of the module a line comes from). --json prints the counts per group, status and rule as one JSON object. A status is new (it blocks), advisory (its rule never blocks) or accepted (in the ledger).
hoglint map Prints the dependents map of the repo's Python files. It runs no rule.
hoglint watched Prints, for each group of a level, whether it claims and passes the level and which files it watches, as one JSON object, with each limit site: a place where a written limit means the reading does not follow the code. --map adds the dependents map from the same run.
hoglint --version Prints the installed version.

Exit codes

Exit Meaning
0 Clean.
1 Violations: new findings, code growth, a ledger that is not equal to the scan, or a stale exception.
2 Hoglint cannot decide: new code that it cannot judge, a base engine that cannot run fully, or a config error.
3 Hoglint could not run. It prints one line that says why.

The pre-commit hook

hoglint help hook prints what the hook checks, what each exit code means for the commit, and what to do about each problem.

Develop

To build from a checkout, see AGENTS.md: bin/build builds the extractor and the native module with the pinned Rust toolchain.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases hoglint

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Frame 2085668439 (1)
Group 1261154229