Refract Guides · Connect a target

Amazon SageMaker JumpStart Targets in Refract

Refract has no built-in SageMaker target. Put a LiteLLM proxy in front of the endpoint, LiteLLM signs the SageMaker calls with your AWS credentials, and scan the proxy with the openai_compat target. Or wrap the endpoint in your own webhook: service.

Target string

my-jumpstart-model is the LiteLLM alias whose upstream is sagemaker/<endpoint-name>.

openai_compat:my-jumpstart-model --base-url http://localhost:4000/v1

Configure credentials

# litellm_config.yaml
model_list:
  - model_name: my-jumpstart-model
    litellm_params:
      model: sagemaker/<endpoint-name>

export AWS_ACCESS_KEY_ID=...
export AWS_SECRET_ACCESS_KEY=...
export AWS_REGION_NAME=us-east-1
litellm --config ./litellm_config.yaml --port 4000

Run a scan

refract scan --target openai_compat:my-jumpstart-model --base-url http://localhost:4000/v1 --battery baseline --concurrency 4 --db ./runs.sqlite --sarif refract-sagemaker.sarif

Keep secrets out of evidence

AWS credentials stay with the LiteLLM proxy. Refract only sees the proxy URL (and the proxy key, if you set one) and never writes either into evidence.

Verify and gate

refract gate --scan scan-a1b2c3d4 --db ./runs.sqlite --max-fn 0 --max-fp-rate 0.05 --min-mcc 0.70
Related

AWS Bedrock SigV4 Targets in Refract

How to run Refract scans against AWS Bedrock with SigV4 credential resolution, without logging or storing secrets in the record chain or SARIF output.

Related

Silent Breach Detection with Refract

How Refract detects AI silent breaches, canary leaks that a guardrail misses, using synthetic high-entropy canaries, benign controls, and SARIF 2.1.0 CI gating.