> For the complete documentation index, see [llms.txt](https://docs.veedna.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.veedna.com/lineaje-mcp-server/tools-reference/security_workflow-ai-security-scan-and-fix.md).

# security\_workflow (AI Security Scan and Fix)

Scan code against your UnifAI policies and get proposed fixes.

**License:** UnifAI

## What it does

`security_workflow` runs Lineaje AI Security Scan and Fix. It checks the code you point it at against the UnifAI policies your organization has enabled, reports any violations, and proposes code changes that resolve them.

{% hint style="info" %}
Policies are disabled by default. [Enable policies](https://docs.veedna.com/unifai/policies/viewing-and-enabling-policies.md) before you scan, or the scan has nothing to evaluate against.
{% endhint %}

## What the fix step changes

`security_workflow` does not edit your files. It returns proposed changes to your AI assistant, and you or the assistant apply them.

{% hint style="warning" %}
Whether your assistant applies proposed changes without asking depends on your IDE settings. In modes that apply edits automatically, such as auto-run in Cursor or auto-accept in Claude Code, changes can land without review. To review every change, set your IDE to ask before it edits files.
{% endhint %}

The scan itself runs on the Lineaje platform.

## Example prompts

* Scan `file_processor.py` using Lineaje
* Check this file for UnifAI policy violations and propose fixes
* Explain the violations Lineaje found in the last scan

For on-demand scans and automatic scanning with hooks, see [Scanning in IDEs](https://docs.veedna.com/unifai/scanning-for-violations/scanning-in-ides.md).

## Parameters

{% hint style="danger" %}
NEEDS INPUT: parameter names, types, and defaults for `security_workflow`.
{% endhint %}

## Output

The scan report lists the project evaluated, the policies applied, and the controls enforced, along with any violations and the proposed changes for each.

## Limits and scope

* Evaluates only the policies enabled for your organization.
* Covers only the tenant and organizations your account can access.

{% hint style="danger" %}
NEEDS INPUT: which asset types a scan covers (files only, or also models, agents, MCP servers, and RAG pipelines), and whether scan results also appear in UnifAI Reports.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.veedna.com/lineaje-mcp-server/tools-reference/security_workflow-ai-security-scan-and-fix.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
