Skip to content

Detects sensitive artifacts such as password manager files, IDE files, etc.

License

Notifications You must be signed in to change notification settings

guardrailsio/detect-sensitive-artifacts

Repository files navigation

Detect Sensitive Artifacts

This custom engine detects sensitive artifacts such as key files, IDE folders, Git folders and history files.

Example GuardRails Output

The following code snipped contains an example of a successful engine run

{
  "engine": {
    "name": "detect-sensitive-artifacts",
    "version": "1.0.0"
  },
  "process": {
    "name": "detect-sensitive-artifacts",
    "version": "1.0.0"
  },
  "language": "general",
  "status": "success",
  "executionTime": 28,
  "issues": 4,
  "output": [
    {
      "type": "secret",
      "ruleId": "sensitive",
      "location": {
        "path": ".idea",
        "positions": {
          "begin": {
            "line": 1
          }
        }
      },
      "metadata": {
        "description": "IntelliJ",
        "lineContent": "[GR-Info] No line content provided by this engine."
      }
    },
    {
      "type": "secret",
      "ruleId": "sensitive",
      "location": {
        "path": ".git",
        "positions": {
          "begin": {
            "line": 1
          }
        }
      },
      "metadata": {
        "description": "Git",
        "lineContent": "[GR-Info] No line content provided by this engine."
      }
    },
    {
      "type": "secret",
      "ruleId": "sensitive",
      "location": {
        "path": ".zhistory",
        "positions": {
          "begin": {
            "line": 1
          }
        }
      },
      "metadata": {
        "description": "History files",
        "lineContent": "[GR-Info] No line content provided by this engine."
      }
    },
    {
      "type": "secret",
      "ruleId": "secrets",
      "location": {
        "path": "random/keystore",
        "positions": {
          "begin": {
            "line": 1
          }
        }
      },
      "metadata": {
        "description": "Key files",
        "lineContent": "[GR-Info] No line content provided by this engine."
      }
    }
  ]
}

About

Detects sensitive artifacts such as password manager files, IDE files, etc.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published