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

aollivierre-sca

Latest version: v0.2.16

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
PyPI package Publisher: aollivierre
5 Versions
84 Downloads

Scan summary

aollivierre-sca was last scanned on 29 Nov 2026 at version 0.2.16. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 5 versions, all published within 2 days (28 and 29 Nov 2026).
  • Findings: No rules fired in version 0.2.16.
  • Downloads: 84 downloads.

Versions

5 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.2.16 LATEST 29 Nov 2026 No rules fired
0.2.15 29 Nov 2026 No rules fired
0.2.14 29 Nov 2026 No rules fired
0.2.13 29 Nov 2026 Not shown
0.2.12 28 Nov 2026 Not shown

No rules fired in 0.2.16

Findings

Findings for v0.2.16. 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.16; other versions have their own rules, not their own score.

README

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

source-control-automation v3 (Python rewrite)

v3 tests coverage 58% release safe to run

[LOCKED] Safe to run. Bare sca is read-only. It walks your code root, writes JSON + an HTML report to its own output dir, and opens the HTML in your browser -- that's it. The pipeline produces a plan of what would-need-fixing but never executes it. After the report opens, you'll get a y/N prompt to apply the plan; type n (or just Enter) to skip and review first. Destructive operations always require an explicit --apply flag.

Cross-platform Python rewrite of v1's PowerShell framework, with a smaller surface and a few capabilities v1 was missing.

Quick start

cd ~/code        # or wherever your repos live
sca              # produces a report, opens it, asks before fixing anything

That's the whole onboarding. The same sca command works on Linux, macOS, and Windows. On Windows specifically, the auto-open uses explorer.exe <path> so the browser launches in your interactive user session even when sca was started from an elevated PowerShell.

Why v3 exists

v1 (the rest of this repo) is a thorough PowerShell framework -- five numbered orchestration scripts, a Pester suite, ~25 specialized fix scripts at the root, gitignore template library. Real value, real coverage. But:

  • Windows / PowerShell only -- won't run on a Linux dev box or a CI runner that defaults to bash.
  • Surface area -- 128 files for what's logically a 5-stage workflow. The Fix-RemainingIssues.ps1-style scripts are one-off remediations that crept into the tree.
  • Doesn't notice "wrapper repo wrapping nested repos" -- the pattern where a parent .git tracks paths that have their own .git directories. We hit this on the original C:\code\.git and had to extract via git subtree split by hand.
  • No secret scanning during audit -- v1 looks for "sensitive file extensions" (.pfx, .env) but not for content patterns like Obfuscated* config + decode function in same repo, leaked PATs in committed scripts, base64+XOR secrets, etc. We found three leaked PATs and a leaked Azure cert by hand during one audit pass -- those should be detected by the tool.
  • HEAD-only branch view -- only inspects the current branch; can't tell you that you have 8 unpushed feature branches or that main is 63 commits behind your active branch.
  • The tool has its own leaked PAT -- Fix-RemoteUrls.ps1 line 3 hardcodes a github_pat_*. A tool that standardizes source control should not be the place this happens.

v3 is the smaller, opinionated rewrite that keeps v1's good ideas and adds the missing pieces.

Architecture

v3/
+-- README.md              (this file)
+-- pyproject.toml         (sca package metadata)
+-- sca/
|   +-- __init__.py
|   +-- cli.py             (entry: `sca audit`, `sca scan`, `sca branches`, `sca render`)
|   +-- audit.py           (walk tree -> classify repos/orphans/loose files -> JSON)
|   +-- branches.py        (per-repo branch audit: unpushed, main-behind, diverged)
|   +-- secrets.py         (NEW: pattern-scan for leaked PATs, XOR-obfuscated configs, etc.)
|   +-- render.py          (JSON -> single-file HTML report)
|   +-- classify.py        (port v1's 5-state model; repo strategy decision)
|   +-- remediate.py       (port v1's state-based fixes; backup-before-modify)
|   +-- extract.py         (NEW: detect + fix wrapper-repo-wrapping-nested-repos pattern)
|   +-- runner_broker.py   (NEW: JIT self-hosted runner provisioning -- see RUNNER_BROKER.md)
+-- templates/
|   +-- gitignore/         (port v1's library: dotnet, python, node, powershell, etc.)
+-- tests/
    +-- ...                (pytest port of v1's Pester suite)

What carries over from v1

v1 idea v3 home
5-state classification (NoSC / LocalGitOnly / Incomplete / PartialSync / Compliant) sca/classify.py
Dedicated-vs-consolidated repo strategy decision (file count, .sln/.csproj presence) sca/classify.py
.gitignore template library by project type templates/gitignore/
Backup-before-modify (zip the project before destructive ops) sca/remediate.py
Per-state remediation workflows (init / push / commit / sync) sca/remediate.py

What carries over from v2 (the audit scripts written 2026-04-30)

v2 script v3 home
audit-code.py (walk + classify into JSON) sca/audit.py
branch-audit.py (per-branch flags) sca/branches.py
render-audit.py (JSON -> HTML) sca/render.py

Plus: cross-platform support (--root / CODE_ROOT env var) so the same code runs on Linux and Windows.

What's NEW in v3 (not in v1 or v2)

  1. Secret scanning during audit -- sca/secrets.py scans every committed file for:
    • Hardcoded github_pat_..., ghp_..., sk-..., AWS access keys
    • Obfuscated* field names paired with a Get-DecryptedValue (or similar) decode function in same repo (XOR/base64 antipattern)
    • Embedded PFX/PEM blobs
    • SharePoint URLs, tenant/client/list UUIDs that look like real values
    • Any password\s*[:=] patterns inside config files
  2. Wrapper-repo detection + extraction -- sca/extract.py detects the "parent .git wraps child repos that have their own .git" pattern and offers a clean extraction (the git subtree split workflow we did manually).
  3. Visibility-before-push gate -- every git push is preceded by a quick check: is the remote repo public? If yes, run secrets.py before the push. Stops the 68-minute-public-exposure problem we hit with ResetIntuneEnrollment.
  4. Branch-level audit -- already had this in v2; v1 was HEAD-only. Surfaces unpushed branches and main-behind situations as first-class report items.
  5. JIT runner broker -- sca runner-broker polls every repo for queued Linux CI jobs and spawns ephemeral self-hosted runners on demand, so a billing-blocked free tier still gets CI on runs-on: [self-hosted, Linux]. Deployed as a systemd service on dev1. See RUNNER_BROKER.md -- it's the single point of failure for CI across the workspace.

Out of scope for v3

  • Continuous monitoring / dashboard -- v1's Mode 4. The audit is one-shot. If you want recurring runs, schedule via cron / Task Scheduler.
  • Cross-platform support beyond Windows + Linux. macOS should work but isn't tested.
  • Non-GitHub forges (GitLab, Bitbucket, Gitea). v1 had aspirations here; v3 is GitHub-only by design.

Status / progress (this branch)

Module Status Notes
sca/audit.py [DONE] ported from v2 walk + classify dirs -> JSON; cross-platform (--root)
sca/branches.py [DONE] ported from v2 per-repo branch state; unpushed / behind / diverged
sca/render.py [DONE] ported from v2 JSON -> single-file HTML report
sca/secrets.py [DONE] NEW live token regex, XOR-obfuscation pair detector, real-looking GUIDs, SharePoint URLs
sca/classify.py [DONE] NEW 5-state model + 3 extra states v1 didn't have (Empty, LooseFile, WrapperRepo) + dedicated/consolidated decision
sca/extract.py [DONE] NEW wrapper-repo detection + repair (subtree-split / archive-and-delete)
sca/templates.py + templates/gitignore/ [DONE] NEW stack detection (python/node/dotnet/powershell) -> curated gitignore
sca/remediate.py [DONE] NEW per-state plan + executor; backup-before-modify; visibility-before-push gate
sca/cli.py [DONE] NEW sca audit \| branches \| scan \| classify \| extract \| gitignore \| remediate \| render \| runner-broker
sca/runner_broker.py [DONE] NEW JIT ephemeral runner provisioning; systemd service on dev1; see RUNNER_BROKER.md
tests/ [DONE] NEW 35 pytest tests, all green
pyproject.toml [DONE] pip install -e v3

Smoke runs on C:\code (real workspace):

  • audit + classify: 24 entries -> 20 FullyCompliant, 2 WrapperRepo, 1 IncompleteSourceControl, 1 LooseFile
  • secrets scan on this very repo: caught 16 hardcoded GitHub PATs in v1's root remediation scripts (subsequently rotated and redacted)
  • extract: identified UnicodeReplacementTool/ as the one wrapper-repo situation in the workspace

Open work

  • The visibility-before-push gate in remediate.py calls gh api to determine repo visibility -- that's a network dependency. A --offline mode that errs on the side of "treat as public" would be safer for CI use.
  • sca extract --archive-and-delete works but the subtree-split path needs an integration test against a real wrapper repo (currently only unit-tested via extract.detect).
  • sca render still writes to C:/code/temp/audit-report.html by default -- that path needs to be parameterized or written next to the input JSON.

How to use it

pip install -e v3                       # editable install puts `sca` on PATH

sca audit --root ~/code                 # walks tree, prints JSON
sca audit --root ~/code | sca classify --summary
sca scan ~/code/some-repo               # secret scan one repo
sca extract --root ~/code               # find wrapper-repo situations
sca gitignore ~/code/some-dir --write   # write a stack-aware .gitignore
sca audit --root ~/code | sca remediate --plan       # dry-run plan
sca audit --root ~/code | sca remediate --apply      # actually run it

sca ci --root ~/code --summary          # audit which baseline gates each repo has
sca ci --root ~/code/some-repo --install # install missing gates (idempotent, content-aware)
sca ci --install --baseline semgrep      # add the opt-in SAST gate to cwd's repo

sca runner-broker --once                # one poll: provision runners for queued CI, then exit
sca runner-broker --poll 120            # daemon mode (how it's deployed on dev1)

Set CODE_ROOT to skip --root everywhere.

For the JIT CI runner broker (sca runner-broker) -- what it is, how it's deployed as a systemd service on dev1, and how to troubleshoot stuck CI jobs -- see RUNNER_BROKER.md.

Secret scanning & allowlisting false positives

sca scan <repo> flags committed secrets by severity: critical (live tokens, XOR-obfuscated values in shipping code) → exit 2; high → exit 1; info → exit 0. CI gates typically fail only on critical.

Two ways to suppress a confirmed false positive (neither can EVER hide a critical finding -- by design those always surface):

  1. Inline pragma -- a comment on the finding's own line: token = "..." # pragma: allowlist secret (also accepts gitleaks:allow).

  2. .sca-allow.toml at the repo root -- path- (+ optional category-) scoped, for findings in files that can't carry a comment (JSON, generated data):

    [[allow]]
    path = "data/config.json"        # substring or glob of the repo-relative path
    category = "real_looking_guid"   # optional; omit = any category
    reason = "Azure tenant IDs -- identifiers, not credentials."

    The allowlist is read from the scan root, so run scans from the repo root.

Scanning this repo

tests/ is intentionally full of secret-shaped fixtures that exercise the scanner, so scan with --exclude tests (this repo's own CI and pre-push hook both do; see .sca-allow.toml and .github/workflows/v3-tests.yml):

sca scan . --exclude tests   # 0 high / 0 critical

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 aollivierre-sca

References

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

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229