AI Security

How a Small Team Can Test an AI Workflow for Sensitive Data Leaks (Make.com Focus)

TL;DR: Build a sandbox, inject controlled test data, run the Make.com AI agent with tracing enabled, capture all outbound calls, and scan the results with OWASP GenAI test vectors and a simple regex‑based DLP. Automate the process in CI/CD so every change is validated before production.

Why Test for Data Leaks in the First place?

Even well‑designed AI agents can accidentally echo user‑provided content, expose API responses, or embed confidential snippets in generated text. For a small company, a single leak can breach contracts, violate GDPR, or damage reputation. Testing early gives you evidence that the workflow respects the data‑access policy you defined.

Step 1 – Create a Controlled Test Sandbox

Use a separate Make.com scenario that mirrors the production flow but points to mock services:

  1. Duplicate the live scenario and rename it test‑leak‑validation.
  2. Replace external APIs (e.g., CRM, payment gateway) with httpbin.org endpoints that echo the request payload.
  3. Store test credentials in a dedicated .env.test file; never mix them with production secrets.

Make.com allows you to toggle the Enable detailed logs option per scenario – turn it on so every module’s input and output is recorded.

Step 2 – Define Test Vectors (What to Inject)

Leverage the OWASP GenAI “Prompt Injection” and “Data Exfiltration” test set. Pick a handful of realistic examples:

Save these vectors in a CSV file (leak‑tests.csv) that the test runner will feed into the Make.com scenario via the HTTP – Make a request module.

Step 3 – Enable End‑to‑End Tracing

Make.com can forward each module’s payload to a webhook. Set up a simple Cloudflare Workers AI endpoint that stores the JSON payloads in a temporary R2 bucket. This gives you an immutable audit trail for every run.

Step 4 – Run the Test Harness

Create a small Node.js script (or a GitHub Action) that:

const csv = require('csv-parser');
const fetch = require('node-fetch');

csv('leak-tests.csv')
  .on('data', async row => {
    const response = await fetch('https://api.make.com/v2/scenarios/test-leak-validation/run', {
      method: 'POST',
      headers: { 'Authorization': `Bearer ${process.env.MAKE_API_KEY}` },
      body: JSON.stringify({ prompt: row.prompt })
    });
    const result = await response.json();
    // Store result for later DLP scan
    console.log(result);
  });

The script captures the AI’s final output and writes it to outputs/. Because the scenario runs in the sandbox, no real data leaves your environment.

Step 5 – Scan the Outputs for Leakage

Two complementary approaches work well for small teams:

If any check fails, the CI job should abort and raise a Slack alert.

Step 6 – Automate the Validation in Your CI/CD Pipeline

Add a job to your GitHub Actions workflow:

name: Validate AI Leak
on:
  push:
    paths:
      - 'make/**'
jobs:
  leak-test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Install deps
        run: npm ci
      - name: Run leak tests
        env:
          MAKE_API_KEY: ${{ secrets.MAKE_API_KEY_TEST }}
        run: node test/leak‑harness.js

This ensures every scenario change is vetted before it reaches production.

Step 7 – Document the Findings

Maintain a simple Markdown log (leak‑validation‑log.md) that records:

When auditors request evidence, you can provide the R2 bucket dump and the log file – both are immutable and searchable.

Step 8 – Iterate and Expand

After the initial rollout, add new vectors that reflect emerging threats (e.g., new PII formats, domain‑specific secrets). Incorporate feedback from any incident response run‑throughs, and keep the test suite version‑controlled alongside your Make.com scenario definitions.

By treating leak detection as a repeatable quality‑gate, you turn a risky unknown into a measurable control that scales with your business.

Need help setting up a secure Make.com AI workflow or integrating OWASP GenAI testing into your CI pipeline? Contact AISecAll for a quick security review.

Need a practical AI security review?

AISecAll reviews prompts, tool permissions, document flows, and agent behavior so small teams can use AI without guessing where the risk sits.

Book a call Discuss a project