gitwtfhub

wtf is safeai?

ikaruscareer/safeai — explained in plain English

Analysis updated 2026-05-18

7PythonAudience · developerComplexity · 3/5Setup · easy

TL;DR

A static code scanner that checks AI agent projects for security risks like shell access, prompt injection, and exposed secrets, before deployment.

Mindmap

mindmap
  root((SafeAI))
    What it does
      Static scan of AI agent code
      Never runs the agent
      Detects risky capabilities
    Checks performed
      Prompt injection patterns
      MCP misconfiguration
      Hardcoded secrets
    Supported frameworks
      LangGraph
      CrewAI
      LangChain
    Output
      Trust score
      SARIF and JSON reports
      CI CD integration
    Audience
      AI developers
      Security teams

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Scan an AI agent codebase for risky capabilities like shell, filesystem, or database access before deploying it.

REASON 2

Catch hardcoded secrets, tokens, and API keys left in AI application source code.

REASON 3

Add an automated security check to a CI/CD pipeline that runs on every commit to an AI agent project.

REASON 4

Get a trust score summarizing how risky an AI application's code is across several risk categories.

What's in the stack?

PythonPyYAML

How it stacks up

ikaruscareer/safeaialx-code/lingbot-video-1.3b-fp8andrewbergman/kuma-importer
Stars777
LanguagePythonPythonPython
Setup difficultyeasymoderate
Complexity3/52/5
Audiencedeveloperdeveloperops devops

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · easy Time to first run · 30min

Requires Python 3.11 or 3.12, some framework support is still early preview with partial capability analysis.

Wtf does this do

SafeAI is a security scanning tool built specifically for AI agent applications, the kind of software that lets an AI model take actions like running commands, accessing files, or calling databases. Regular code security scanners were not built with these systems in mind, so they miss risks that are unique to AI agents, such as untrusted text being fed into a model's prompt, or an agent quietly gaining access to a shell, a filesystem, or an external service without anyone noticing. The tool works by reading through a project's source code without ever running it or calling any AI model itself. It looks for signs that a project is using one of eight supported AI agent frameworks, including LangGraph, CrewAI, LangChain, and a few others, then maps out what capabilities each agent has, like shell access, database access, or the ability to hand off tasks to other agents. It also checks for common Model Context Protocol setup mistakes and scans prompt-handling code for injection style patterns and other risky behaviors. Along the way it flags hardcoded secrets, tokens, and API keys sitting in the code. Every finding gets sorted into one of several risk categories and combined into an overall trust score, so a team can see at a glance how risky an AI application is before it ever reaches production. Reports can be viewed in the terminal, or exported as JSON, SARIF, or HTML, and the tool is built to slot into CI/CD pipelines, so a check can run automatically every time code is pushed. The project positions itself as a step that happens early, at commit time, working alongside other tools that test AI systems while they are actually running, rather than replacing them. Support for each framework currently ranges from full detection down to partial or minimal capability analysis, and the project notes this is still an early preview. Installing it requires Python 3.11 or 3.12, and it can be installed straight from the source code with pip, then run as a command line scan against any project directory.

Yoink these prompts

Prompt 1
Explain what capabilities and risk categories SafeAI detects in an AI agent codebase.
Prompt 2
Help me set up SafeAI as a step in my GitHub Actions CI pipeline.
Prompt 3
Walk me through how SafeAI's trust score is calculated from its risk categories.
Prompt 4
Show me how to run SafeAI against my LangChain or CrewAI project and read the SARIF report.

Frequently asked questions

wtf is safeai?

A static code scanner that checks AI agent projects for security risks like shell access, prompt injection, and exposed secrets, before deployment.

What language is safeai written in?

Mainly Python. The stack also includes Python, PyYAML.

How hard is safeai to set up?

Setup difficulty is rated easy, with roughly 30min to a first successful run.

Who is safeai for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.