Skip to content
ES EN

IaC Scan

Infrastructure as Code (IaC) scanning detects security misconfigurations in your deployment files before they reach production. Gerion uses KICS (Keeping Infrastructure as Code Secure) by Checkmarx.

Run

Ventana de terminal
gerion iac-scan [PATH]
Ventana de terminal
# Scan the current directory
gerion iac-scan .
# Save results as JSON
gerion iac-scan . --format json --output-file iac.json
# Send results to the Gerion API
gerion iac-scan . --api-url $GERION_API_URL --api-key $GERION_API_KEY

Supported technologies

PlatformFile types
Terraform.tf, .tfvars, modules
Kubernetes.yaml / .yml manifests
HelmChart.yaml, values.yaml, templates
DockerDockerfile, docker-compose.yml
AWS CloudFormation.yaml, .json
Azure Resource ManagerARM templates .json
Azure Bicep.bicep
Google Deployment Manager.yaml, .jinja
Ansibleplaybooks, roles
OpenAPI / Swagger.yaml, .json
Crossplaneresources .yaml

Detected misconfiguration categories

CategoryExamples
Unauthorized accessPorts exposed to the world (0.0.0.0/0), public SSH
Insecure containersRunning as root, privileged: true, excessive capabilities
Exposed storagePublic S3/GCS buckets, unencrypted disks
Disabled encryptionDatabases without at-rest encryption, HTTP traffic
Logging & auditingDisabled CloudTrail, missing access logs
Permissive IAM*:* policies, overly broad roles
NetworkingOpen security groups, VPCs without private subnets
Secrets in IaCEnvironment variables with hardcoded values

Options

OptionDescription
--formatOutput format: json | markdown | sarif
--output-fileSave results to a file (disables API submission)
--queries-pathPath to a custom KICS queries directory
--api-urlGerion API Gateway URL
--api-keyM2M API key
--timeoutTimeout in seconds (default: 180)
--log-leveldebug | info | warning | error