Open-sourcing NightFalcon: Intuit’s context-aware security harness

Intuit and Open AI logo lockup
Intuit and Open AI logo lockup

As AI-assisted coding accelerates development, security teams face a growing volume of code to review. Security issues that span multiple services are particularly difficult to detect because each service can appear to work correctly in isolation. Finding these issues requires understanding how the services interact and whether security controls and business rules are enforced across the complete workflow.

Consider a reimbursement workflow: one service records requests, another approves them, and a third sends payments. Suppose a logged-in user can change another user’s request from $50 to $500 without clearing its approved status. The payment service trusts that status and sends $500.

Understanding that potential failure takes more than spotting a missing access check. Someone has to follow the request across services, establish that approval applies to the amount being paid, and determine whether the unauthorized path is reachable. That investigation takes time, especially when different teams own the services and no single team sees the whole workflow.

We built NightFalcon to help security and engineering teams do that work. Developed by the cybersecurity teams at Intuit and OpenAI, NightFalcon is an open-source security-review harness that coordinates specialized AI agents to map workflows, identify potential issues, challenge findings, and provide evidence and suggested fixes.

Teams can review code before release or examine the source version behind a deployed application. They can also supply company policies, authorization rules, and application context to guide the review. This post explains how NightFalcon works and how engineers can use its findings.

Understanding the business flow

NightFalcon starts by understanding the application’s business workflow across multiple repositories. In the reimbursement example, it connects the user’s expense, request, supporting documents, approval, and payment, along with the rules that govern each step.

It also looks at who can take each action. A user submitting their own reimbursement request and an approver reviewing it may access the same record, but their roles and permissions are different. Understanding those relationships helps explain which actions the code should allow.

The approval rule is part of that business understanding. One person requests reimbursement and another approves it, often called maker-checker. Approval applies to the amount being paid, so changing that amount should require renewed approval. The code needs to preserve these rules even when several services share the work.

NightFalcon can start with the code alone. Its agents follow the implementation to piece together the workflow, then use any policies or business rules the team supplies to fill in what the code does not explain.

Building NightFalcon with OpenAI

Intuit’s cybersecurity team collaborated closely with OpenAI to develop NightFalcon. Intuit brought application security and business workflow knowledge. OpenAI brought experience with agent design, prompting, and how to give models the right context.

The OpenAI team shared guidance on agent instructions and Codex configuration, and worked with Intuit to examine how NightFalcon supplies context to agents, carries evidence between review stages, and challenges candidate findings through adversarial review. These discussions helped connect model capabilities to the practical demands of reviewing code across services and repositories.

A central focus was balancing investigation with evidence. Agents need enough freedom to pursue credible leads, while clearly distinguishing what the code establishes from assumptions and unanswered questions. OpenAI helped translate this balance into practical guidance for how agents should proceed when evidence is incomplete, versus when a finding is ready for engineering review.

Reviewing how business rules hold up across services and repositories is a complex problem that many companies share. Intuit and OpenAI built NightFalcon together to address it and because it is open source, other companies can now use it for their own security reviews.

A chart showing Intuit and OpenAI NightFalcon orchestration

How NightFalcon performs context-aware security review

NightFalcon builds a code graph to map how the application’s services, data, and business workflows connect. Using that graph and any supplied business context, agents find and score potential security issues, challenge selected findings through adversarial debate, and produce reports with supporting evidence, business impact, reproduction steps, and suggested fixes.

Here is what each step does.

1. Get the code

NightFalcon pulls the selected repositories and records the version under review, so engineers can examine the exact code behind each finding. If a repository cannot be downloaded, the review stops, because missing code could change the result.

2. Map the application

Agents identify where requests enter the application, which libraries it uses, and where permissions change between systems. They also load any business rules or policies you supply, which shows which service should enforce each rule and where one service trusts another.

3. Follow the business workflow

Agents follow data and actions across services, including repeated requests and retries, to see who can do what and how one step affects the next. In the reimbursement example, they determine who can change another user’s request and whether payment still proceeds after the approved amount changes.

4. Find and score security issues

Agents look for code bugs and gaps in how the application enforces business rules, using any rules, policies, and application context you supply. They rate candidate issues with the Common Vulnerability Scoring System (CVSS) to help engineers prioritize.

5. Challenge the findings

Higher-severity findings go to a separate group of agents. Each starts with an independent assessment, then debates the finding with the others using evidence. The debate can reject a finding, narrow it, or leave a question for an engineer.

6. Check published vulnerability information

For selected findings involving third-party libraries, NightFalcon checks current public security advisories and stored, versioned references for common vulnerability patterns. This gives engineers supporting information to examine alongside the code.

7. Try to build a test case

For selected findings, NightFalcon tries to build a proof of concept that makes the claimed behavior concrete and exposes missing assumptions. Two separate agents debate each example, and attempts that fail, are refused, or do not qualify are recorded as skipped. Engineers can use the result as a starting point for testing.

8. Write a report for each repository

Each repository gets a report covering the possible problems, the affected code, why each issue matters, how someone could misuse the workflow, reproduction steps, and suggested fixes. Logs keep rejected findings and open questions visible. Reports are available in Markdown, JSON, and SARIF, a format used by security tools.

9. Bring the results together

NightFalcon combines the repository reports into an application-wide summary and an interactive browser report, so engineers can follow a problem across services and examine the code in each repository. Combined JSON and SARIF exports let teams bring the results into other tools.

Turn a finding into a fix

Here’s an example of a NightFalcon finding for the reimbursement workflow.

Example NightFalcon finding: a user may access or change another user's reimbursement request. The report lists the issue (missing authorization checks), business context, what the review found, why it matters, the affected code, steps to reproduce, a suggested fix, and what remains to verify.

NightFalcon connects each finding to the business workflow: why the issue matters, how someone could misuse the flow, and which code allows it. The report includes step-by-step reproduction instructions, generated proof-of-concept code, and suggested fixes to help engineers investigate and address the issue.

Tuning the harness and supplying business rules and runtime context helped us make the findings more useful to engineers. Of the NightFalcon findings we’ve closed, 87% were confirmed as real vulnerabilities and fixed and the remaining were benign. The most common issue types were authorization gaps (about 3 in 10), excessive permissions (nearly 2 in 10), and missing authentication (about 1 in 7).

Beyond approval failures like this one, NightFalcon looks for authorization gaps, excessive permissions, and missing authentication. It examines how these weaknesses affect the full business workflow, including who can take an action and which service should enforce each rule.

Another example is a purchasing system with a request service and an approval service. The request service verifies each user’s role before passing it to the approval service, which trusts that check rather than repeating it. Later, a team adds a second request service but overlooks the need to verify roles before sending requests for approval. This second service passes along whatever role the user supplies. A malicious user can claim to be an “approver,” and the approval service accepts that claim, allowing them to approve their own purchases.

Understanding the different types of findings

Some findings will require additional context or corrections. When reviewing the results, it helps to distinguish three cases.

True positives

The reported issue is a real defect. Engineers check how it affects the application, whether the conditions needed to exploit it are present, and how the proposed fix addresses the problem.

False positives

The reported issue is not actually a defect. The model may misunderstand the business rule or overlook a permission check already present in the code. An engineer can check the explanation against the implementation and correct the finding.

Real issues that are not reachable in production

Sometimes the code has a real defect, but the application prevents someone from reaching it. Another service might check permissions first, or a feature flag might disable the affected workflow. In the reimbursement example, a separate check could block access to another user’s request before the vulnerable code runs.

Engineers need to establish where that check happens and whether it covers every relevant path. Until then, reachability remains an open question.

Try NightFalcon and help improve it

NightFalcon is open source, with setup instructions for Codex and other tools such as Claude Code and Cursor. Choose a workflow with a clear security rule and include the repositories that implement it. Bring your organization’s policies and relevant runtime context, then examine the findings with the engineers who know the system.

Use only repositories and systems you are authorized to assess. LLM-based reviews can miss vulnerabilities and report incorrect findings, so a single run is not a complete security assessment. Validate the evidence, fix confirmed issues, and use regression tests to preserve the rule as the code changes.

We welcome reproducible examples of missed issues, incorrect findings, and workflows NightFalcon misunderstands. Contributions can also improve context handling, review instructions, and reports. Remove private code and customer information before sharing examples.

Explore NightFalcon and follow the setup instructions. Read the contribution guide to propose a change with supporting verification.