Skip to content
项目

关于

可视化 AWS 安全组。

安全与隐私

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
+1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

aws-security-viz

Build Status Gem Version Gem Downloads Docker image OpenSSF Scorecard License

See which AWS security groups can reach which, and which are open to the internet. aws-security-viz reads the EC2 security group configuration from the AWS API, or from the JSON written by aws ec2 describe-security-groups, and draws it as a graph.

HTML viewer: the dev VPC and its groups, the public peers 0.0.0.0/0 and ::/0, and a thick red edge from 0.0.0.0/0 to the dev-bastion group
  1. Output formats: a self-contained HTML viewer (the default; offline, with collapsed VPCs, "can X reach Y" queries, several layouts and light and dark themes, see the viewer tour), JSON, Mermaid, DOT, and any image format Graphviz supports.
  2. One region, several regions, or all regions in a single graph.
  3. Risky public ingress (0.0.0.0/0 or ::/0 on a sensitive port) is drawn as a dashed crimson edge, and --fail-on-risk turns it into exit status 2 for CI.

Other formats such as DOT, PNG, SVG and Mermaid are covered in the documentation. Graphviz draws this one:

Security group graph

Documentation: https://anaynayak.github.io/aws-security-viz/

Install

Ruby 3.3 or newer. Graphviz is needed only for image formats such as png and svg.

gem install aws_security_viz

Or run the published image, which has Ruby and Graphviz built in:

docker pull ghcr.io/anaynayak/aws-security-viz:<version>

Example

aws ec2 describe-security-groups > security_groups.json
aws_security_viz -o security_groups.json -f viz.html

Open viz.html in a browser. To query AWS directly, use --profile <profile_name> --region us-west-1 in place of -o.

Learn more

  1. Quickstart
  2. Outputs and the HTML viewer
  3. Configuration, opts.yml and exit codes
  4. Credentials and IAM
  5. Filtering and risk checks, including CI
  6. Troubleshooting

Also: SECURITY.md, CHANGELOG.md, CONTRIBUTING.md and CODE_OF_CONDUCT.md.

LICENSE

MIT, see LICENSE.md. The HTML viewer inlines vendored copies of Cytoscape.js, cytoscape-fcose, cose-base, layout-base, dagre and cytoscape-dagre, which are also MIT licensed; their notices are under lib/aws_security_viz/vendor/ and ship inside the gem.

探索相关项目

加载中…