INNER CODE UNIT · Python

cmd_audit_boundary

2akouwu/reverify · reverify/cli.py:540

def cmd_audit_boundary(args: argparse.Namespace) -> None:
    workspace = args.workspace or os.getcwd()
    urls = args.urls.split(",") if args.urls else None
    report = run_full_security_audit(workspace, urls)

    if args.json:
        print(json.dumps(report, indent=2, ensure_ascii=False))
    else:
        print(f"=== Security Boundary Audit Report ===")
        print(f"Status:          {report['status']}")
        print(f"Workspace Root:  {report['workspace_root']}")
        print(f"Summary:         {report['summary']}")
        print("\n--- Network Boundaries Evaluated ---")
        for net in report["network_audit"]:
            state = "SAFE" if net["is_safe"] else "BLOCKED"
            print(f"[{state}] {net['url']}")
            for finding in net["findings"]:
                print(f"       -> {finding}")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…