Skip to content

Repo Scanner es tu guardia nocturno gratis: revisa secretos, malware y configuraciones inseguras sin pedirte más RAM que un navegador con 3 tabs. Literal, es como ⅛ de un Octo. 🚀

License

Notifications You must be signed in to change notification settings

SPotes22/repo-scanner

Repository files navigation

Repo Scanner

Contexto

estas son las cosas que minimo debes entender para que intuyas y puedas modificar.

  • Python / lib os -> para recorrer el directorio
  • Github Token -> para Control de Versiones en los cambios
  • GitLeaks - GitGuardian -> Base de Datos de: Malas Practicas de codigo, asignaciones genericas , Problemas de Hardcoding y loggin.

Instalacion

desde el requirements.txt puedes descargar las librerias qe permiten saber que sirve y que no en tu repo.

python3 -m venv auditor # es recomendable que el scanner tenga su propio venv
source auditor/bin/activate # activar segun OS
pip install -r requirements.txt # instalar librerias

uso

ejecuta:

python check_files.py

Expectativa:

=== PIPELINE DE DETECCIÓN DE SECRETOS Y MALWARE ===
[*] Ejecutando detect-secrets en ....
{
  "version": "1.5.0",
  "plugins_used": [
    {
      "name": "ArtifactoryDetector"
    },
    {
      "name": "AWSKeyDetector"
    },
    {
      "name": "AzureStorageKeyDetector"
    },
    {
      "name": "Base64HighEntropyString",
      "limit": 4.5
    },
    {
      "name": "BasicAuthDetector"
    },
    {
      "name": "CloudantDetector"
    },
    {
      "name": "DiscordBotTokenDetector"
    },
    {
      "name": "GitHubTokenDetector"
    },
    {
      "name": "GitLabTokenDetector"
    },
    {
      "name": "HexHighEntropyString",
      "limit": 3.0
    },
    {
      "name": "IbmCloudIamDetector"
    },
    {
      "name": "IbmCosHmacDetector"
    },
    {
      "name": "IPPublicDetector"
    },
    {
      "name": "JwtTokenDetector"
    },
    {
      "name": "KeywordDetector",
      "keyword_exclude": ""
    },
    {
      "name": "MailchimpDetector"
    },
    {
      "name": "NpmDetector"
    },
    {
      "name": "OpenAIDetector"
    },
    {
      "name": "PrivateKeyDetector"
    },
    {
      "name": "PypiTokenDetector"
    },
    {
      "name": "SendGridDetector"
    },
    {
      "name": "SlackDetector"
    },
    {
      "name": "SoftlayerDetector"
    },
    {
      "name": "SquareOAuthDetector"
    },
    {
      "name": "StripeDetector"
    },
    {
      "name": "TelegramBotTokenDetector"
    },
    {
      "name": "TwilioKeyDetector"
    }
  ],
  "filters_used": [
    {
      "path": "detect_secrets.filters.allowlist.is_line_allowlisted"
    },
    {
      "path": "detect_secrets.filters.common.is_ignored_due_to_verification_policies",
      "min_level": 2
    },
    {
      "path": "detect_secrets.filters.heuristic.is_indirect_reference"
    },
    {
      "path": "detect_secrets.filters.heuristic.is_likely_id_string"
    },
    {
      "path": "detect_secrets.filters.heuristic.is_lock_file"
    },
    {
      "path": "detect_secrets.filters.heuristic.is_not_alphanumeric_string"
    },
    {
      "path": "detect_secrets.filters.heuristic.is_potential_uuid"
    },
    {
      "path": "detect_secrets.filters.heuristic.is_prefixed_with_dollar_sign"
    },
    {
      "path": "detect_secrets.filters.heuristic.is_sequential_string"
    },
    {
      "path": "detect_secrets.filters.heuristic.is_swagger_file"
    },
    {
      "path": "detect_secrets.filters.heuristic.is_templated_secret"
    }
  ],
  "results": {},
  "generated_at": "2025-09-15T17:34:36Z"
}
[✓] Escaneo limpio. Puedes ejecutar tu código con seguridad.

editar

los diccionarios IGNORE_DIRS ,FILTERS_BY_STACK

About

Repo Scanner es tu guardia nocturno gratis: revisa secretos, malware y configuraciones inseguras sin pedirte más RAM que un navegador con 3 tabs. Literal, es como ⅛ de un Octo. 🚀

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages