├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── PULL_REQUEST_TEMPLATE.md └── workflows │ ├── coverage.yml │ ├── release.yml │ └── test.yml ├── .gitignore ├── .gitmodules ├── .vscode ├── extensions.json └── launch.json ├── Cargo.lock ├── Cargo.toml ├── Dockerfile ├── LICENSE ├── README.md ├── docs ├── .dockerignore ├── .editorconfig ├── .eslintrc.json ├── .gitignore ├── .prettierrc ├── Dockerfile ├── LICENSE ├── README.md ├── config.js ├── content │ ├── changelog.md │ ├── images │ │ └── shisho-demo.gif │ ├── index.md │ ├── roadmap.md │ ├── shisho-action.md │ ├── shisho-cloud.md │ ├── shisho-cloud │ │ ├── frequently-asked-questions.md │ │ └── getting-started.md │ ├── shisho-dojo.md │ ├── shisho.md │ └── shisho │ │ ├── getting-started.md │ │ ├── learn-shisho.md │ │ └── learn-shisho │ │ ├── 01-pattern.md │ │ ├── 02-rule.md │ │ ├── 03-constraint.md │ │ └── 04-rewrite-option.md ├── gatsby-browser.js ├── gatsby-config.js ├── gatsby-node.js ├── netlify.toml ├── package.json ├── public │ ├── favicon.png │ └── images │ │ ├── about-us-screenshot.png │ │ ├── header.png │ │ ├── logo-white.png │ │ ├── ogp.png │ │ ├── sso.png │ │ └── twitter-brands-block.svg ├── src │ ├── GithubLink.js │ ├── YoutubeEmbed.js │ ├── components │ │ ├── DarkModeSwitch.js │ │ ├── Header.js │ │ ├── NextPrevious.js │ │ ├── images │ │ │ ├── closed.js │ │ │ ├── day.png │ │ │ ├── discord-brands-block.svg │ │ │ ├── github.svg │ │ │ ├── help.svg │ │ │ ├── logo.svg │ │ │ ├── night.png │ │ │ ├── opened.js │ │ │ ├── twitter-brands-block.svg │ │ │ └── twitter.svg │ │ ├── index.js │ │ ├── layout.js │ │ ├── link.js │ │ ├── mdxComponents │ │ │ ├── LiveProvider.js │ │ │ ├── anchor.js │ │ │ ├── codeBlock.js │ │ │ ├── index.js │ │ │ └── loading.js │ │ ├── rightSidebar.js │ │ ├── search │ │ │ ├── hitComps.js │ │ │ ├── index.js │ │ │ ├── input.js │ │ │ └── styles.js │ │ ├── sidebar │ │ │ ├── index.js │ │ │ ├── tree.js │ │ │ └── treeNode.js │ │ ├── styles │ │ │ ├── Docs.js │ │ │ ├── GlobalStyles.js │ │ │ ├── PageNavigationButtons.js │ │ │ └── Sidebar.js │ │ ├── theme.js │ │ ├── theme │ │ │ ├── index.js │ │ │ └── themeProvider.js │ │ └── themeProvider.js │ ├── custom-sw-code.js │ ├── custom │ │ ├── config │ │ │ └── codeBlockLanguages.js │ │ └── styles │ │ │ └── styles.js │ ├── html.js │ ├── pwa-512.png │ ├── templates │ │ └── docs.js │ └── utils │ │ └── algolia.js └── yarn.lock ├── rules └── docker.shisho.yaml └── src ├── cli.rs ├── cli ├── encoding.rs ├── opts.rs ├── reporter.rs ├── reporter │ ├── console.rs │ ├── json.rs │ └── sarif.rs ├── subcommand.rs ├── subcommand │ ├── check.rs │ ├── completion.rs │ └── find.rs └── tests │ ├── mod.rs │ └── ruleset │ ├── generic │ ├── constraints │ │ ├── be-any-of.yaml │ │ ├── match-any-of-pattern.yaml │ │ ├── match-any-of-regex-pattern.yaml │ │ ├── match-pattern.yaml │ │ ├── match-regex-pattern.yaml │ │ ├── match.tf │ │ ├── not-be-any-of.yaml │ │ ├── not-match-any-of-pattern.yaml │ │ ├── not-match-any-of-regex-pattern.yaml │ │ ├── not-match-pattern.yaml │ │ ├── not-match-regex-pattern.yaml │ │ └── unmatch.tf │ ├── encoding │ │ ├── ruleset.yaml │ │ ├── shift_jis.go │ │ └── utf_16le.go │ ├── invalid_constraints │ │ ├── ambiguous-pattern-use.yaml │ │ ├── ambiguous-regex-pattern-use.yaml │ │ ├── invalid-match-string.yaml │ │ ├── invalid-match-strings.yaml │ │ ├── mixed-pattern-like.yaml │ │ ├── no-pattern-like.yaml │ │ └── unmatch.tf │ ├── mod.rs │ ├── nested_constraints │ │ ├── match.tf │ │ ├── ruleset.yaml │ │ ├── unmatch.with-inner.tf │ │ └── unmatch.without-inner.tf │ └── shared_constraints │ │ ├── Dockerfile.test │ │ ├── dockerfile │ │ ├── ruleset.yaml │ │ └── test.Dockerfile │ ├── hcl │ ├── comment │ │ ├── match.tf │ │ ├── ruleset.yaml │ │ └── unmatch.tf │ ├── mod.rs │ ├── uncontrolled_ebs_encryption_key │ │ ├── match.tf │ │ ├── ruleset.yaml │ │ └── unmatch.tf │ └── unencrypted_ebs │ │ ├── match.tf │ │ ├── ruleset.yaml │ │ └── unmatch.tf │ └── mod.rs ├── core.rs ├── core ├── constraint.rs ├── language.rs ├── language │ ├── docker.rs │ ├── go.rs │ └── hcl.rs ├── matcher.rs ├── matcher │ ├── item.rs │ ├── literal.rs │ ├── state.rs │ └── tree.rs ├── node.rs ├── pattern.rs ├── query.rs ├── rewriter.rs ├── rewriter │ ├── builder.rs │ └── literal.rs ├── ruleset.rs ├── ruleset │ ├── assets │ │ ├── 1.yaml │ │ ├── 2.yaml │ │ └── dumb │ └── test.rs ├── source.rs ├── target.rs └── tree.rs ├── lib.rs └── main.rs /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/.github/ISSUE_TEMPLATE/feature_request.md -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/workflows/coverage.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/.github/workflows/coverage.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | .idea 3 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/.gitmodules -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/.vscode/extensions.json -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/Cargo.toml -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/README.md -------------------------------------------------------------------------------- /docs/.dockerignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .cache 3 | -------------------------------------------------------------------------------- /docs/.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/.editorconfig -------------------------------------------------------------------------------- /docs/.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/.eslintrc.json -------------------------------------------------------------------------------- /docs/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/.gitignore -------------------------------------------------------------------------------- /docs/.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/.prettierrc -------------------------------------------------------------------------------- /docs/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/Dockerfile -------------------------------------------------------------------------------- /docs/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/LICENSE -------------------------------------------------------------------------------- /docs/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/README.md -------------------------------------------------------------------------------- /docs/config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/config.js -------------------------------------------------------------------------------- /docs/content/changelog.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/content/changelog.md -------------------------------------------------------------------------------- /docs/content/images/shisho-demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/content/images/shisho-demo.gif -------------------------------------------------------------------------------- /docs/content/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/content/index.md -------------------------------------------------------------------------------- /docs/content/roadmap.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/content/roadmap.md -------------------------------------------------------------------------------- /docs/content/shisho-action.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/content/shisho-action.md -------------------------------------------------------------------------------- /docs/content/shisho-cloud.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/content/shisho-cloud.md -------------------------------------------------------------------------------- /docs/content/shisho-cloud/frequently-asked-questions.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/content/shisho-cloud/frequently-asked-questions.md -------------------------------------------------------------------------------- /docs/content/shisho-cloud/getting-started.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/content/shisho-cloud/getting-started.md -------------------------------------------------------------------------------- /docs/content/shisho-dojo.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/content/shisho-dojo.md -------------------------------------------------------------------------------- /docs/content/shisho.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/content/shisho.md -------------------------------------------------------------------------------- /docs/content/shisho/getting-started.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/content/shisho/getting-started.md -------------------------------------------------------------------------------- /docs/content/shisho/learn-shisho.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/content/shisho/learn-shisho.md -------------------------------------------------------------------------------- /docs/content/shisho/learn-shisho/01-pattern.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/content/shisho/learn-shisho/01-pattern.md -------------------------------------------------------------------------------- /docs/content/shisho/learn-shisho/02-rule.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/content/shisho/learn-shisho/02-rule.md -------------------------------------------------------------------------------- /docs/content/shisho/learn-shisho/03-constraint.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/content/shisho/learn-shisho/03-constraint.md -------------------------------------------------------------------------------- /docs/content/shisho/learn-shisho/04-rewrite-option.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/content/shisho/learn-shisho/04-rewrite-option.md -------------------------------------------------------------------------------- /docs/gatsby-browser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/gatsby-browser.js -------------------------------------------------------------------------------- /docs/gatsby-config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/gatsby-config.js -------------------------------------------------------------------------------- /docs/gatsby-node.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/gatsby-node.js -------------------------------------------------------------------------------- /docs/netlify.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/netlify.toml -------------------------------------------------------------------------------- /docs/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/package.json -------------------------------------------------------------------------------- /docs/public/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/public/favicon.png -------------------------------------------------------------------------------- /docs/public/images/about-us-screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/public/images/about-us-screenshot.png -------------------------------------------------------------------------------- /docs/public/images/header.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/public/images/header.png -------------------------------------------------------------------------------- /docs/public/images/logo-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/public/images/logo-white.png -------------------------------------------------------------------------------- /docs/public/images/ogp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/public/images/ogp.png -------------------------------------------------------------------------------- /docs/public/images/sso.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/public/images/sso.png -------------------------------------------------------------------------------- /docs/public/images/twitter-brands-block.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/public/images/twitter-brands-block.svg -------------------------------------------------------------------------------- /docs/src/GithubLink.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/GithubLink.js -------------------------------------------------------------------------------- /docs/src/YoutubeEmbed.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/YoutubeEmbed.js -------------------------------------------------------------------------------- /docs/src/components/DarkModeSwitch.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/components/DarkModeSwitch.js -------------------------------------------------------------------------------- /docs/src/components/Header.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/components/Header.js -------------------------------------------------------------------------------- /docs/src/components/NextPrevious.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/components/NextPrevious.js -------------------------------------------------------------------------------- /docs/src/components/images/closed.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/components/images/closed.js -------------------------------------------------------------------------------- /docs/src/components/images/day.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/components/images/day.png -------------------------------------------------------------------------------- /docs/src/components/images/discord-brands-block.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/components/images/discord-brands-block.svg -------------------------------------------------------------------------------- /docs/src/components/images/github.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/components/images/github.svg -------------------------------------------------------------------------------- /docs/src/components/images/help.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/components/images/help.svg -------------------------------------------------------------------------------- /docs/src/components/images/logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/components/images/logo.svg -------------------------------------------------------------------------------- /docs/src/components/images/night.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/components/images/night.png -------------------------------------------------------------------------------- /docs/src/components/images/opened.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/components/images/opened.js -------------------------------------------------------------------------------- /docs/src/components/images/twitter-brands-block.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/components/images/twitter-brands-block.svg -------------------------------------------------------------------------------- /docs/src/components/images/twitter.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/components/images/twitter.svg -------------------------------------------------------------------------------- /docs/src/components/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/components/index.js -------------------------------------------------------------------------------- /docs/src/components/layout.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/components/layout.js -------------------------------------------------------------------------------- /docs/src/components/link.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/components/link.js -------------------------------------------------------------------------------- /docs/src/components/mdxComponents/LiveProvider.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/components/mdxComponents/LiveProvider.js -------------------------------------------------------------------------------- /docs/src/components/mdxComponents/anchor.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/components/mdxComponents/anchor.js -------------------------------------------------------------------------------- /docs/src/components/mdxComponents/codeBlock.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/components/mdxComponents/codeBlock.js -------------------------------------------------------------------------------- /docs/src/components/mdxComponents/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/components/mdxComponents/index.js -------------------------------------------------------------------------------- /docs/src/components/mdxComponents/loading.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/components/mdxComponents/loading.js -------------------------------------------------------------------------------- /docs/src/components/rightSidebar.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/components/rightSidebar.js -------------------------------------------------------------------------------- /docs/src/components/search/hitComps.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/components/search/hitComps.js -------------------------------------------------------------------------------- /docs/src/components/search/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/components/search/index.js -------------------------------------------------------------------------------- /docs/src/components/search/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/components/search/input.js -------------------------------------------------------------------------------- /docs/src/components/search/styles.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/components/search/styles.js -------------------------------------------------------------------------------- /docs/src/components/sidebar/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/components/sidebar/index.js -------------------------------------------------------------------------------- /docs/src/components/sidebar/tree.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/components/sidebar/tree.js -------------------------------------------------------------------------------- /docs/src/components/sidebar/treeNode.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/components/sidebar/treeNode.js -------------------------------------------------------------------------------- /docs/src/components/styles/Docs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/components/styles/Docs.js -------------------------------------------------------------------------------- /docs/src/components/styles/GlobalStyles.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/components/styles/GlobalStyles.js -------------------------------------------------------------------------------- /docs/src/components/styles/PageNavigationButtons.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/components/styles/PageNavigationButtons.js -------------------------------------------------------------------------------- /docs/src/components/styles/Sidebar.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/components/styles/Sidebar.js -------------------------------------------------------------------------------- /docs/src/components/theme.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/components/theme.js -------------------------------------------------------------------------------- /docs/src/components/theme/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/components/theme/index.js -------------------------------------------------------------------------------- /docs/src/components/theme/themeProvider.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/components/theme/themeProvider.js -------------------------------------------------------------------------------- /docs/src/components/themeProvider.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/components/themeProvider.js -------------------------------------------------------------------------------- /docs/src/custom-sw-code.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/custom-sw-code.js -------------------------------------------------------------------------------- /docs/src/custom/config/codeBlockLanguages.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/custom/config/codeBlockLanguages.js -------------------------------------------------------------------------------- /docs/src/custom/styles/styles.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/custom/styles/styles.js -------------------------------------------------------------------------------- /docs/src/html.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/html.js -------------------------------------------------------------------------------- /docs/src/pwa-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/pwa-512.png -------------------------------------------------------------------------------- /docs/src/templates/docs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/templates/docs.js -------------------------------------------------------------------------------- /docs/src/utils/algolia.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/src/utils/algolia.js -------------------------------------------------------------------------------- /docs/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/docs/yarn.lock -------------------------------------------------------------------------------- /rules/docker.shisho.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/rules/docker.shisho.yaml -------------------------------------------------------------------------------- /src/cli.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli.rs -------------------------------------------------------------------------------- /src/cli/encoding.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/encoding.rs -------------------------------------------------------------------------------- /src/cli/opts.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/opts.rs -------------------------------------------------------------------------------- /src/cli/reporter.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/reporter.rs -------------------------------------------------------------------------------- /src/cli/reporter/console.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/reporter/console.rs -------------------------------------------------------------------------------- /src/cli/reporter/json.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/reporter/json.rs -------------------------------------------------------------------------------- /src/cli/reporter/sarif.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/reporter/sarif.rs -------------------------------------------------------------------------------- /src/cli/subcommand.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/subcommand.rs -------------------------------------------------------------------------------- /src/cli/subcommand/check.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/subcommand/check.rs -------------------------------------------------------------------------------- /src/cli/subcommand/completion.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/subcommand/completion.rs -------------------------------------------------------------------------------- /src/cli/subcommand/find.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/subcommand/find.rs -------------------------------------------------------------------------------- /src/cli/tests/mod.rs: -------------------------------------------------------------------------------- 1 | #[cfg(test)] 2 | mod ruleset; 3 | -------------------------------------------------------------------------------- /src/cli/tests/ruleset/generic/constraints/be-any-of.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/generic/constraints/be-any-of.yaml -------------------------------------------------------------------------------- /src/cli/tests/ruleset/generic/constraints/match-any-of-pattern.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/generic/constraints/match-any-of-pattern.yaml -------------------------------------------------------------------------------- /src/cli/tests/ruleset/generic/constraints/match-any-of-regex-pattern.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/generic/constraints/match-any-of-regex-pattern.yaml -------------------------------------------------------------------------------- /src/cli/tests/ruleset/generic/constraints/match-pattern.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/generic/constraints/match-pattern.yaml -------------------------------------------------------------------------------- /src/cli/tests/ruleset/generic/constraints/match-regex-pattern.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/generic/constraints/match-regex-pattern.yaml -------------------------------------------------------------------------------- /src/cli/tests/ruleset/generic/constraints/match.tf: -------------------------------------------------------------------------------- 1 | resource "block" "volume" { 2 | attr = 1 3 | } 4 | -------------------------------------------------------------------------------- /src/cli/tests/ruleset/generic/constraints/not-be-any-of.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/generic/constraints/not-be-any-of.yaml -------------------------------------------------------------------------------- /src/cli/tests/ruleset/generic/constraints/not-match-any-of-pattern.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/generic/constraints/not-match-any-of-pattern.yaml -------------------------------------------------------------------------------- /src/cli/tests/ruleset/generic/constraints/not-match-any-of-regex-pattern.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/generic/constraints/not-match-any-of-regex-pattern.yaml -------------------------------------------------------------------------------- /src/cli/tests/ruleset/generic/constraints/not-match-pattern.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/generic/constraints/not-match-pattern.yaml -------------------------------------------------------------------------------- /src/cli/tests/ruleset/generic/constraints/not-match-regex-pattern.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/generic/constraints/not-match-regex-pattern.yaml -------------------------------------------------------------------------------- /src/cli/tests/ruleset/generic/constraints/unmatch.tf: -------------------------------------------------------------------------------- 1 | resource "block" "volume" { 2 | attr = 2 3 | } 4 | -------------------------------------------------------------------------------- /src/cli/tests/ruleset/generic/encoding/ruleset.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/generic/encoding/ruleset.yaml -------------------------------------------------------------------------------- /src/cli/tests/ruleset/generic/encoding/shift_jis.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/generic/encoding/shift_jis.go -------------------------------------------------------------------------------- /src/cli/tests/ruleset/generic/encoding/utf_16le.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/generic/encoding/utf_16le.go -------------------------------------------------------------------------------- /src/cli/tests/ruleset/generic/invalid_constraints/ambiguous-pattern-use.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/generic/invalid_constraints/ambiguous-pattern-use.yaml -------------------------------------------------------------------------------- /src/cli/tests/ruleset/generic/invalid_constraints/ambiguous-regex-pattern-use.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/generic/invalid_constraints/ambiguous-regex-pattern-use.yaml -------------------------------------------------------------------------------- /src/cli/tests/ruleset/generic/invalid_constraints/invalid-match-string.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/generic/invalid_constraints/invalid-match-string.yaml -------------------------------------------------------------------------------- /src/cli/tests/ruleset/generic/invalid_constraints/invalid-match-strings.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/generic/invalid_constraints/invalid-match-strings.yaml -------------------------------------------------------------------------------- /src/cli/tests/ruleset/generic/invalid_constraints/mixed-pattern-like.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/generic/invalid_constraints/mixed-pattern-like.yaml -------------------------------------------------------------------------------- /src/cli/tests/ruleset/generic/invalid_constraints/no-pattern-like.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/generic/invalid_constraints/no-pattern-like.yaml -------------------------------------------------------------------------------- /src/cli/tests/ruleset/generic/invalid_constraints/unmatch.tf: -------------------------------------------------------------------------------- 1 | resource "block" "volume" { 2 | attr = 2 3 | } 4 | -------------------------------------------------------------------------------- /src/cli/tests/ruleset/generic/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/generic/mod.rs -------------------------------------------------------------------------------- /src/cli/tests/ruleset/generic/nested_constraints/match.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/generic/nested_constraints/match.tf -------------------------------------------------------------------------------- /src/cli/tests/ruleset/generic/nested_constraints/ruleset.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/generic/nested_constraints/ruleset.yaml -------------------------------------------------------------------------------- /src/cli/tests/ruleset/generic/nested_constraints/unmatch.with-inner.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/generic/nested_constraints/unmatch.with-inner.tf -------------------------------------------------------------------------------- /src/cli/tests/ruleset/generic/nested_constraints/unmatch.without-inner.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/generic/nested_constraints/unmatch.without-inner.tf -------------------------------------------------------------------------------- /src/cli/tests/ruleset/generic/shared_constraints/Dockerfile.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/generic/shared_constraints/Dockerfile.test -------------------------------------------------------------------------------- /src/cli/tests/ruleset/generic/shared_constraints/dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/generic/shared_constraints/dockerfile -------------------------------------------------------------------------------- /src/cli/tests/ruleset/generic/shared_constraints/ruleset.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/generic/shared_constraints/ruleset.yaml -------------------------------------------------------------------------------- /src/cli/tests/ruleset/generic/shared_constraints/test.Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/generic/shared_constraints/test.Dockerfile -------------------------------------------------------------------------------- /src/cli/tests/ruleset/hcl/comment/match.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/hcl/comment/match.tf -------------------------------------------------------------------------------- /src/cli/tests/ruleset/hcl/comment/ruleset.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/hcl/comment/ruleset.yaml -------------------------------------------------------------------------------- /src/cli/tests/ruleset/hcl/comment/unmatch.tf: -------------------------------------------------------------------------------- 1 | resource "comment_test" "volume" { 2 | size = 1 3 | } 4 | -------------------------------------------------------------------------------- /src/cli/tests/ruleset/hcl/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/hcl/mod.rs -------------------------------------------------------------------------------- /src/cli/tests/ruleset/hcl/uncontrolled_ebs_encryption_key/match.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/hcl/uncontrolled_ebs_encryption_key/match.tf -------------------------------------------------------------------------------- /src/cli/tests/ruleset/hcl/uncontrolled_ebs_encryption_key/ruleset.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/hcl/uncontrolled_ebs_encryption_key/ruleset.yaml -------------------------------------------------------------------------------- /src/cli/tests/ruleset/hcl/uncontrolled_ebs_encryption_key/unmatch.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/hcl/uncontrolled_ebs_encryption_key/unmatch.tf -------------------------------------------------------------------------------- /src/cli/tests/ruleset/hcl/unencrypted_ebs/match.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/hcl/unencrypted_ebs/match.tf -------------------------------------------------------------------------------- /src/cli/tests/ruleset/hcl/unencrypted_ebs/ruleset.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/hcl/unencrypted_ebs/ruleset.yaml -------------------------------------------------------------------------------- /src/cli/tests/ruleset/hcl/unencrypted_ebs/unmatch.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/hcl/unencrypted_ebs/unmatch.tf -------------------------------------------------------------------------------- /src/cli/tests/ruleset/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/cli/tests/ruleset/mod.rs -------------------------------------------------------------------------------- /src/core.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/core.rs -------------------------------------------------------------------------------- /src/core/constraint.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/core/constraint.rs -------------------------------------------------------------------------------- /src/core/language.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/core/language.rs -------------------------------------------------------------------------------- /src/core/language/docker.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/core/language/docker.rs -------------------------------------------------------------------------------- /src/core/language/go.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/core/language/go.rs -------------------------------------------------------------------------------- /src/core/language/hcl.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/core/language/hcl.rs -------------------------------------------------------------------------------- /src/core/matcher.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/core/matcher.rs -------------------------------------------------------------------------------- /src/core/matcher/item.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/core/matcher/item.rs -------------------------------------------------------------------------------- /src/core/matcher/literal.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/core/matcher/literal.rs -------------------------------------------------------------------------------- /src/core/matcher/state.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/core/matcher/state.rs -------------------------------------------------------------------------------- /src/core/matcher/tree.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/core/matcher/tree.rs -------------------------------------------------------------------------------- /src/core/node.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/core/node.rs -------------------------------------------------------------------------------- /src/core/pattern.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/core/pattern.rs -------------------------------------------------------------------------------- /src/core/query.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/core/query.rs -------------------------------------------------------------------------------- /src/core/rewriter.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/core/rewriter.rs -------------------------------------------------------------------------------- /src/core/rewriter/builder.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/core/rewriter/builder.rs -------------------------------------------------------------------------------- /src/core/rewriter/literal.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/core/rewriter/literal.rs -------------------------------------------------------------------------------- /src/core/ruleset.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/core/ruleset.rs -------------------------------------------------------------------------------- /src/core/ruleset/assets/1.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/core/ruleset/assets/1.yaml -------------------------------------------------------------------------------- /src/core/ruleset/assets/2.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/core/ruleset/assets/2.yaml -------------------------------------------------------------------------------- /src/core/ruleset/assets/dumb: -------------------------------------------------------------------------------- 1 | this file should not be loaded -------------------------------------------------------------------------------- /src/core/ruleset/test.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/core/ruleset/test.rs -------------------------------------------------------------------------------- /src/core/source.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/core/source.rs -------------------------------------------------------------------------------- /src/core/target.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/core/target.rs -------------------------------------------------------------------------------- /src/core/tree.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/core/tree.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flatt-security/shisho/HEAD/src/main.rs --------------------------------------------------------------------------------