rules:
  - id: detect-pytorch
    languages:
      - python
    severity: INFO
    message: "Possibly found usage of AI tooling: PyTorch"
    pattern-either:
      - pattern: import torch
      - pattern: torch.$FUNC(...)
    metadata:
      references:
        - https://semgrep.dev/blog/2024/detecting-shadow-ai
      category: maintainability
      technology:
        - genAI
        - LLMs
      confidence: LOW