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

asset-guard

Latest version: v0.1.0

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
PyPI package Publisher: cuongn
0 Stars
0 Forks
1 Versions
Python Repo language

Scan summary

asset-guard was last scanned on 27 Nov 2026 at version 0.1.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 27 Nov 2026.
  • Findings: No rules fired in version 0.1.0.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.0 LATEST 27 Nov 2026 No rules fired

No rules fired in 0.1.0

Findings

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

README

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

asset-guard

A Python (3.12+) CLI that keeps Xcode asset catalogs (.xcassets) lean. It finds unused, duplicate, and broken image assets, and can remove unused image sets before you build. It is designed to run in GitHub Actions, Jenkins, or any other CI.


Features

  • Unused assets: finds image sets that nothing references. Detection is conservative, so clean does not delete images that are in use. It checks:
    • every string literal in Swift and Objective-C (UIImage(named:), Image("…"), enums, constants, SwiftGen, R.swift),
    • dynamic names ("icon_\(i)", @"icon_%d"),
    • Xcode 15+ generated symbols (Image(.logo), UIImage.logo, ImageResource.logo),
    • storyboard/XIB attributes and plist strings.
  • Remove unused assets: asset-guard clean shows what it would delete; --apply deletes whole .imageset folders. It refuses to run when the catalogs have uncommitted git changes, so every deletion can be reverted.
  • Duplicate images: finds byte-identical files across image sets and reports the wasted space. Duplicates are reported, never auto-deleted.
  • Broken image sets: invalid or missing Contents.json, missing files, missing @2x/@3x, vectors with an explicit scale, and duplicate asset names.
  • Built for CI: --fail-on unused,duplicates,broken, --report-json, --summary-file (GitHub step summary), meaningful exit codes, a GitHub Action, and a Jenkins example. See docs/ci.md.
  • Multiple catalogs: discovers every .xcassets in the project (app, widgets, local packages) and skips Pods, .build, DerivedData, and Carthage.

Quick start

# Run directly without installing (requires uv)
uvx asset-guard audit /path/to/MyApp

# Or install globally
uv tool install asset-guard   # or: pip install asset-guard

# Dry run: list unused image sets that would be removed
asset-guard clean /path/to/MyApp

# Delete them (requires committed, clean catalogs, or pass --force)
asset-guard clean /path/to/MyApp --apply

# CI gate: exit 1 if unused or duplicate images exist, and save a JSON report
asset-guard audit . --fail-on unused,duplicates --report-json asset-guard.json

Try it on the bundled sample project: uv run asset-guard audit examples/SampleApp.

Configuration (optional)

.asset-guard.toml in the project root:

ignore = ["seasonal_*"]        # asset-name globs that are never reported or removed
exclude-dirs = ["Generated"]   # extra source dirs to skip
expected-scales = ["2x", "3x"] # required bitmap scales
scan-interface-builder = true
CI
# GitHub Actions
- uses: nguyen-ta-cuong/asset-guard@v0.1.0
  with:
    command: clean
    apply: "true"

See docs/ci.md for PR checks, release builds, the Jenkins pipeline, exit codes, and the git safety check.


Development

Requirements: Python >= 3.12 and uv.

git clone https://github.com/nguyen-ta-cuong/asset-guard.git
cd asset-guard
make dev      # create .venv with pytest, ruff, ty
make lint     # ruff format check + ruff check + ty
make test     # pytest with coverage gate
uv run asset-guard --help

See AGENTS.md for the module layout, conventions, and safety rules.


Roadmap

  1. Asset-level duplicate grouping & local-only dedupe — Group duplicates where all scales of set A match set B, with an opt-in local command that safely rewrites references.
  2. Richer CI report formats — SARIF (for GitHub Code Scanning annotations on PRs) and JUnit XML (for Jenkins test reports), wired through reporting.py and _write_outputs.
  3. Broader catalog coverage — Extend catalog.py to .colorset and .symbolset.

License

MIT — see LICENSE.

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 asset-guard

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

Copy of Template Design OX Blog (1)
Research

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

CVE

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

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229