Skip to content
| Marketplace
Sign in
Visual Studio Code>Linters>Flyingduck Security AssistantNew to Visual Studio Code? Get it now.
Flyingduck Security Assistant

Flyingduck Security Assistant

Flyingduck

|
9 installs
| (1) | Free
Flags vulnerable dependencies (npm, PyPI, Maven, Go, NuGet, Cargo, RubyGems, Composer, Pub), hardcoded secrets and insecure code as you or your coding agent write code. Includes an MCP server for coding agents.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Flyingduck Security Assistant

A VS Code extension and bundled MCP server that flag vulnerable dependencies, hardcoded secrets and insecure code while you, or your coding agent, write code.

  • Plugin: watches the dependency files of each project in your workspace (see the table below), scans the files you are going to commit for secrets, and checks code for security issues (SAST). Findings appear as diagnostics, hovers and a "Flyingduck Security" panel in the Explorer. It catches changes made by hand, by agents and by CLI tools.
  • MCP server: exposes advisory tools, check_dependencies (npm, PyPI, Maven, Go, NuGet, Cargo, RubyGems, Composer and Pub), check_secrets and check_sast, and tells agents when to use them, so they check before they write.
Ecosystem Manifest Lockfile
Python (PyPI) requirements.txt, pyproject.toml uv.lock, poetry.lock, Pipfile.lock, requirements.lock
JavaScript (npm) package.json package-lock.json, npm-shrinkwrap.json, pnpm-lock.yaml, yarn.lock
Go go.mod
Rust (Cargo) Cargo.toml Cargo.lock
Ruby (RubyGems) Gemfile Gemfile.lock
PHP (Composer) composer.json composer.lock
Dart/Flutter (Pub) pubspec.yaml pubspec.lock
C#/.NET (NuGet) Directory.Packages.props, *.csproj, *.fsproj, *.vbproj, packages.config packages.lock.json
Java (Maven, Gradle) pom.xml, libs.versions.toml, build.gradle(.kts) gradle.lockfile

The lockfile supplies exact versions, including transitive packages; direct dependencies are shown on their manifest line. Without a lockfile, only exact versions in the manifest are checked, and ranges are listed as unpinned. Maven has no lockfile, so for a pom.xml project only direct dependencies are checked; a version set outside the file (a parent POM, a BOM, a Gradle variable) is not checked.

Privacy: source code never leaves the machine. Only {name, version, ecosystem} is sent for CVE lookups. Secret scanning, SAST and reachability analysis run on your machine.

Getting started

  1. Install the extension.

  2. A one-time prompt (and the Flyingduck: Sign in status bar item) asks you to sign in. Paste your API token from the Flyingduck portal. It is verified with Flyingduck before it is saved.

    Flyingduck in the editor is for organizations with the Flyingduck IDE add-on. Without it, sign-in is refused, and nothing is checked or offered to agents. Ask your Flyingduck admin to enable it.

  3. You're done:

    • CVE checks start, and the workspace is rescanned.
    • VS Code's agent mode gets the Flyingduck MCP tools automatically.
    • Coding agents found on this machine (Claude Code, Cursor and others) are offered a one-click connection, using the same sign-in (see below).

The token is stored in VS Code's secret storage and mirrored to ~/.flyingduck/credentials.json (readable only by you). The MCP server reads it from there, so no MCP config ever contains a token. To rotate or sign out, click the status bar item (Update token / Sign out); the change applies everywhere.

When a token expires or is revoked:

  • The first rejected check (HTTP 401/403) turns the status bar item into Flyingduck: Token expired and shows one Update Token notification.
  • Packages that couldn't be checked are marked "not checked". Agents get the same explanation from the MCP tools, so they can tell you.
  • Updating the token re-verifies it, rescans the workspace and restarts the MCP server.
  • If the token carries an expiry date (JWT exp), you're warned about 7 days ahead. The gateway defaults to production, so nothing needs configuring.

Signing out removes the token from this machine (secret storage and ~/.flyingduck/credentials.json) and restarts the MCP server, so agents lose access at the same time:

  • Nothing is checked any more (CVEs, secrets, SAST) and the findings are cleared.
  • The MCP tools refuse every call, saying the user is not signed in.
  • Telemetry stops.
  • The token itself stays valid on the server until it expires or an admin revokes it.

If your organization loses the IDE add-on, Flyingduck signs you out the same way and says why. It is checked at sign-in, when VS Code starts, every hour, and whenever a Flyingduck endpoint refuses the token for it. When Flyingduck cannot be reached, signing in is not possible; an existing sign-in keeps working offline.

The Flyingduck Security panel

Every workspace folder has a row, and in it every git repository (a folder holding several repositories lists each one), even when nothing was found: "0 issues" once it was fully scanned, "not scanned" until then. Each folder or repository has SCA, Secrets and SAST, each with a count and per-severity breakdown:

  • SCA
    • Direct: what your manifest (requirements.txt / pyproject.toml) declares, at the declared version. If the lockfile is out of sync and resolves a different version, that version keeps its warning on the lockfile line but is not listed here a second time.
    • Transitive: packages only in the lockfile.
    • Unpinned: declarations without an exact version.
  • Secrets: one entry per secret found, with its type, pattern and line. The matched value is never shown.

The Actions menu (▶ in the panel's title bar) lists everything you can trigger by hand:

Action What it does
Scan for Secrets Scans every file you would commit (see below). Asks which repository, or all of them. The key button on a folder or repository row (or its Secrets row) scans just that one.
Scan for SAST Issues Checks code for security issues (see below). Asks which repository, or all of them. The bug button on a folder or repository row (or its SAST row) scans just that one.
Connect Coding Agents Adds Flyingduck to the coding agents on this machine, or removes it. See "MCP server for other coding agents".
Copy MCP Server Config (other agents) Config to paste into an agent by hand.
Sign In / Update Token / Sign Out Shown according to whether you are signed in.

Do you use the vulnerable part? (reachability)

For Python and Go projects, each CVE is marked REACHABLE (your code calls the affected API, with the lines), NOT REACHED, or UNKNOWN (no pattern yet, or the code could not be analysed), decided the way the Flyingduck backend scan decides it. Your code is analysed on your machine; only package names and versions are sent. Python analysis uses your Python (flyingduck.reachability.pythonPath, the Python extension's interpreter, or py -3 / python3), only in trusted workspaces, and never runs your code.

Coding agents get it too: check_dependencies (MCP) reports which CVEs of a vulnerable PyPI or Go package your project already has are reached, and where, so they fix those first. A CVE that is not reached is still reported as a vulnerability.

When files are scanned for secrets

Trigger Files scanned
Workspace opens Every file open in an editor tab, including restored tabs VS Code has not loaded yet
You open a file That file
A file is saved, or changes on disk (agent, CLI, git) That file, in full
Actions → Scan for Secrets, or a folder or repository row's key button Every file of the repositories chosen (all, or one), every line, including files nobody opened or edited this session. Cancel stops before the next file; results found so far are kept.

Always skipped:

  • Gitignored files. Findings are about what will be committed. Every .gitignore from the repository root down applies, plus .git/info/exclude, even when the workspace is a subfolder of the repo. Your global git excludes file (core.excludesFile) is not read.
  • Environment, dependency and build folders (.venv, node_modules, ...), and binary files.
  • Files over 2 MB, when opened or saved.

Secrets are found by Duckdefender's scanner, built into the extension: the same patterns and rules as the Flyingduck backend scan, so both report the same keys (including example keys, which the backend reports too).

Security issues in code (SAST)

Code files are checked with a bundled code scanner (nothing to install) and Duckdefender's rules, the rule set the Flyingduck backend scan runs, so the editor reports what the backend would. Issues appear in the editor and in a SAST group per folder and repository in the panel, with the rule, its message and its impact (high, medium, low).

Trigger Files checked
A code file is opened or saved, or changes on disk (agent, CLI, git) That file, after a quiet second
Actions → Scan for SAST Issues, or a folder or repository row's bug button Every code file of the repositories chosen (all, or one). Only one scan runs at a time, so many open repositories do not slow the machine down.
  • flyingduck.sast.auto (on by default) turns the automatic checks off; the workspace scan still works.
  • Skipped: the same files as for secrets, plus what the repository's .fd.config.yaml excludes.
  • Agents can check code before writing it with the MCP tool check_sast.
  • The rules are downloaded from Flyingduck with your sign-in and kept in memory only, never on disk. Signed out or offline, SAST says it is unavailable rather than reporting no issues.
  • If Windows Application Control blocks the engine, SAST says it could not run; everything else keeps working.

Results kept between sessions

Secret and SAST findings are saved per workspace folder in ~/.flyingduck/cache/scans/ (findings only, never secret values). When the workspace opens again they appear at once: files changed since are scanned again and deleted files are dropped. A new extension version or rule set starts over.

MCP server for other coding agents

VS Code's own agent mode gets the MCP server automatically. For other coding agents:

Automatic. After you sign in, Flyingduck offers once to connect the agents it finds. Click Connect, then start a new session in the agent (or restart the app). Flyingduck: Connect Coding Agents (also in the Actions menu) adds or removes them at any time.

Agent Config Flyingduck updates
Claude Code ~/.claude.json
Cursor ~/.cursor/mcp.json
Windsurf ~/.codeium/windsurf/mcp_config.json
Claude Desktop claude_desktop_config.json in Claude's app-data folder
Kiro ~/.kiro/settings/mcp.json
Gemini CLI ~/.gemini/settings.json
Codex ~/.codex/config.toml

What it changes:

  • Only its own entry. It adds one flyingduck-security server entry to the agent's user-level config; your other servers and settings stay as they are.
  • Attribution hook (Claude Code, Cursor). It also adds one hook (~/.claude/settings.json, ~/.cursor/hooks.json) that notes which files the agent writes, as file paths only, kept on this machine, so issues can be attributed to the agent. Your own hooks stay as they are. It needs Node.js; without it, attribution relies on the other signals.
  • Safe edits. A config it can't parse (for example JSON with comments) is left untouched, and you get a message instead. The original is saved next to it as *.flyingduck-backup before the first change.
  • No token. The entry holds no token; the server uses your Flyingduck sign-in.
  • No Node.js required. Node.js 18+ is used when installed; otherwise the agent runs the server with VS Code's own runtime.
  • Stays connected. If an entry goes missing, the extension restores it at startup.
  • Cleaned up on uninstall. Uninstalling the extension removes the entries.

The server also tells agents when to use it: before adding or upgrading a dependency, and before writing code that contains credentials. Agents don't need a per-project instruction file for that.

By hand. For an agent not in the list, run Flyingduck: Copy MCP Server Config (other agents) and paste the result into its MCP settings:

{
  "mcpServers": {
    "flyingduck-security": {
      "command": "node",
      "args": ["C:/Users/<you>/.flyingduck/bin/mcp-server.js"]
    }
  }
}

The command fills in your absolute path; MCP clients don't expand ~. ~/.flyingduck/bin/mcp-server.js is a stable launcher, so agent configs keep working across extension updates. When the extension updates, agents already connected switch to the new MCP server within a few seconds, without starting a new session. Requires Node.js 18+ on PATH.

Optional env var Use
FLYINGDUCK_TOKEN CI/headless: a token without signing in (overrides the credentials file)
FLYINGDUCK_API_BASE_URL Testing against a non-production gateway
FLYINGDUCK_HOME / FLYINGDUCK_CACHE_DIR Relocate ~/.flyingduck / its cache

Current limitations

  • Sign-in is by pasting an API token from the Flyingduck portal.

Support

Questions or problems: support@flyingduck.io

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft