Skip to content

Clarify and harden the A.I.G scanner integration #5

Description

@Patrick-Erichsen

Context

ClawScan currently exposes an aig scanner adapter for Tencent AI-Infra-Guard. The adapter is useful, but it is not equivalent to the command-backed scanners in the runtime image.

A.I.G is a service-backed scanner: ClawScan talks to a running A.I.G API via AIG_BASE_URL rather than invoking a local CLI. Upstream A.I.G is distributed as a Docker/API service stack, not a simple binary we can reasonably bake into clawscan-runtime.

Current shortcomings

  • clawscan --scanner aig does not work out of the box on a clean install.
  • clawscan-runtime does not include or start A.I.G.
  • Benchmark CI does not start an A.I.G sidecar/service when --scanner aig is requested.
  • The adapter is covered by fixture-backed tests, but we do not have a live smoke test against a real A.I.G service.
  • clawscan install aig can only give setup guidance; it cannot install a local scanner binary like it can for command-backed scanners.
  • Docs/help need to make the service-backed requirement unmistakable.
  • The upstream service defaults to local/no-auth style deployment, so docs should keep warning users not to expose it publicly.
  • Env/sandbox behavior needs to be explicit: AIG_BASE_URL, model config env vars, and API keys need to be passed into ClawScan/scanner execution without recording secret values.

Desired outcome

Make the aig scanner honest and reliable as a service-backed integration:

  • Keep aig out of default built-in profiles unless a service is explicitly configured.
  • Document the minimum local setup for running A.I.G alongside ClawScan.
  • Add a CI/service-container or compose recipe for scanner runs that include aig.
  • Add a live smoke path that can be run manually or in CI when A.I.G is available.
  • Ensure clawscan scanners aig and clawscan install aig clearly say a running A.I.G service is required.
  • Confirm failure mode is clear when AIG_BASE_URL is unreachable.

Non-goals

  • Do not bake the full A.I.G service stack into clawscan-runtime unless we later decide to make the runtime image an orchestrator.
  • Do not expose an unauthenticated A.I.G service publicly.
  • Do not store or print A.I.G API/model secret values in artifacts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal priority bug or improvement with limited blast radius.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:securityThis issue is about security boundaries, credentials, authz, sandboxing, or sensitive data.issue-rating: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions