csv-formula-injection

Detect CSV and spreadsheet formula injection vulnerabilities in exported files.

96|1|Updated Jun 4, 2026
One-click install
npx skills add https://github.com/langbyyi/CyberStrikeAI-SRC --skill csv-formula-injection-langbyyi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: csv-formula-injection
Source: https://github.com/langbyyi/CyberStrikeAI-SRC/tree/main/skills/csv-formula-injection
Command: npx skills add https://github.com/langbyyi/CyberStrikeAI-SRC --skill csv-formula-injection-langbyyi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the critical security risk of formula injection in CSV and spreadsheet exports/imports, which can enable arbitrary command execution, data exfiltration via cloud spreadsheet functions, and unauthorized access when untrusted data is opened in tools like Excel, LibreOffice Calc, or Google Sheets.

Core Features & Use Cases

  • Multi-Platform Formula Testing: Detect execution of malicious formulas and DDE payloads in CSV/XLSX files opened in desktop spreadsheet tools, plus test for abuse of Google Sheets IMPORT* functions for data exfiltration.
  • Obfuscation Bypass Testing: Validate if defensive parsers can be bypassed with whitespace, dispersed characters, or rundll32-style payloads.
  • Use Case: A security tester can use this Skill to audit a SaaS platform's admin billing export feature, checking if malicious payloads in customer transaction memos execute when the exported CSV is opened by the finance team in Excel.

Quick Start

Use the csv-formula-injection skill to test if the user profile export feature of the target application reflects formula payloads in the "bio" field and executes them when the exported CSV is opened in LibreOffice Calc.

Frequently Asked Questions about csv-formula-injection

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test for CSV formula injection vulnerabilities in spreadsheet exports?

To test for CSV formula injection, inject malicious formula payloads into application inputs and verify if they execute when the exported CSV or XLSX files are opened in spreadsheet tools. This validates if untrusted data triggers command execution or data exfiltration.

What is CSV injection and how does DDE injection work in spreadsheet applications?

CSV injection is a security vulnerability where untrusted data containing formula prefixes triggers arbitrary command execution when exported files are opened. DDE injection exploits Dynamic Data Exchange protocols in desktop spreadsheet tools like Excel or LibreOffice Calc to execute system commands.

Can I test Google Sheets IMPORT* functions for data exfiltration vulnerabilities?

Yes, you can test Google Sheets IMPORT* function abuse by injecting payload formulas into application inputs. This detects whether exported cloud spreadsheet integrations allow unauthorized data exfiltration through malicious IMPORT functions fetching external data sources.

How do I bypass CSV injection sanitization controls with obfuscation techniques?

Bypass CSV injection sanitization by applying obfuscation techniques like whitespace padding, dispersed formula characters, or rundll32-style payloads. Testing these bypass methods validates whether defensive parsers incorrectly sanitize or block malicious formula prefix triggers in exported data.

Does CSV formula injection testing work for admin billing exports and audit logs?

CSV formula injection testing works across applications that export or import CSV, XLSX, or tab-separated data, including admin billing exports and audit logs. It identifies if user-controlled fields reflect formula payloads that execute upon file opening.

What are the limitations of spreadsheet formula injection testing?

Spreadsheet formula injection testing is limited by the target application's export sanitization controls and the specific spreadsheet tool used to open files. Execution behavior varies between Excel, LibreOffice Calc, and Google Sheets, requiring platform-specific payload validation.