Skip to main content

Aegvanta ScopeGuard

A small, dependency-free Python library and CLI for evaluating literal IP addresses against an explicit assessment scope. Intended for authorized defensive security tooling and offline policy checks. Deny rules take precedence; missing allow rules deny access. No network connections, DNS queries, scanning, or third-party runtime dependencies.

Install from source

python -m pip install .

Requires Python 3.10+. No package registry publication is claimed.

Library example

from scopeguard import ScopePolicy
policy = ScopePolicy(allow=['192.0.2.0/24'], deny=['192.0.2.10/32'])
assert policy.permits('192.0.2.1')
assert not policy.permits('192.0.2.10')
assert policy.evaluate('192.0.2.10').reason == 'explicit_deny'

CLI example

python -m scopeguard --policy examples/policy.json 192.0.2.1

The CLI prints a JSON decision and exits with code 0 (allowed), 1 (denied or invalid target), or 2 (invalid/missing policy or invalid CLI usage). Example addresses are reserved for documentation. Policies accept only allow and deny arrays of explicit CIDR strings; duplicate keys, invalid CIDRs and unsupported target forms are rejected.

Limits

This is a standalone prototype and policy helper, not an authorization system or a network enforcement boundary. Callers must verify written authorization, independently enforce egress controls, and validate the actual destination at connection time. Hostnames, IPv4-mapped IPv6 targets and scoped IPv6 addresses are rejected. Invalid policy CIDRs raise an error; do not catch configuration errors and fall back to permissive behavior. It does not resolve hostnames, authorize redirects, or establish that a target is safe.

Development

python -m unittest discover -s tests -v

See project background, contribution guide, security policy, and MIT license. Reproducible bug reports, genuine use cases and focused patches are welcome. Use synthetic data; never include credentials, customer logs or private infrastructure information.

Metadata

Release files for aegvanta-scopeguard 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 aegvanta-scopeguard 0.1.0
File Size Uploaded Provenance Actions
aegvanta_scopeguard-0.1.0.tar.gz 5.3 kB With provenance Details for aegvanta_scopeguard-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aegvanta-scopeguard 0.1.0
File Interpreter ABI Platform Actions
aegvanta_scopeguard-0.1.0-py3-none-any.whl Python 3 none any Details for aegvanta_scopeguard-0.1.0-py3-none-any.whl

Total release size: 10.4 kB

Release files / aegvanta_scopeguard-0.1.0.tar.gz

Download URL aegvanta_scopeguard-0.1.0.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a62246f77674e0348945303bcc334e56556443ad86f5727111a43710a47daeaf
BLAKE2b-256 checksum
How to use checksums
9be79738b1b9a20612b232cfc7241e3aeb26265af2f9ff09e346fb248144c131
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

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

Download URL aegvanta_scopeguard-0.1.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea6d0947fa37681efcf6378ab6984ce96ec287410978f2d3c6bf989a98c34e30
BLAKE2b-256 checksum
How to use checksums
de664d428e3ce17b8b4fabd6d2850812af36c24b9b9d84dc4900f89e8cce349a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

Security for aegvanta-scopeguard 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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aegvanta_scopeguard-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.

Transparency log

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 Full 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