# Detecting serverless function injection

> Detecting serverless function injection is an open-source agent skill for cloud and infrastructure. Detects and prevents code injection attacks targeting serverless functions (AWS Lambda, Azure Functions, Google Cloud Functions) through eve. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/plurigrid/asi/tree/main/plugins/asi/skills/detecting-serverless-function-injection
- **Repository:** https://github.com/plurigrid/asi
- **GitHub stars:** 72
- **License:** Apache-2.0
- **Skill name:** detecting-serverless-function-injection
- **Collection:** https://github.com/plurigrid/asi
- **Categories:** cloud and infrastructure
- **Listing updated:** 2026-11-17

## About

Detects and prevents code injection attacks targeting serverless functions (AWS Lambda, Azure Functions, Google Cloud Functions) through event source poisoning, malicious layer injection, runtime command execution, and IAM privilege escalation via function modification. The analyst combines static analysis of function code, CloudTrail event correlation, runtime behavior monitoring, and IAM policy auditing to identify injection vectors across the expanded serverless attack surface including API Gateway, S3, SQS, DynamoDB Streams, and CloudWatch event triggers. Activates for requests involving Lambda security assessment, serverless injection detection, function event poisoning analysis, or serverless privilege escalation investigation.

## When your agent uses it

> Detects and prevents code injection attacks targeting serverless functions (AWS Lambda, Azure Functions, Google Cloud Functions) through event source poisoning, malicious layer injection, runtime command execution, and IAM privilege escalation via function modification. The analyst combines static analysis of function code, CloudTrail event correlation, runtime behavior monitoring, and IAM policy auditing to identify injection vectors across the expanded serverless attack surface including API Gateway, S3, SQS, DynamoDB Streams, and CloudWatch event triggers. Activates for requests involving Lambda security assessment, serverless injection detection, function event poisoning analysis, or serverless privilege escalation investigation.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/plurigrid/asi/tree/HEAD/plugins/asi/skills/detecting-serverless-function-injection)
- [License: Apache-2.0](https://github.com/plurigrid/asi/tree/HEAD/plugins/asi/skills/detecting-serverless-function-injection)

## Install

### Claude Code

This skill ships in the `asi` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add plurigrid/asi
/plugin install asi@asi
```

Or copy only this skill to `~/.claude/skills/detecting-serverless-function-injection`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/plurigrid/asi.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/detecting-serverless-function-injection &&
cp -R "$tmp/plugins/asi/skills/detecting-serverless-function-injection" ~/.claude/skills/detecting-serverless-function-injection &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/detecting-serverless-function-injection` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/detecting-serverless-function-injection` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/plurigrid/asi.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/detecting-serverless-function-injection &&
cp -R "$tmp/plugins/asi/skills/detecting-serverless-function-injection" ~/.agents/skills/detecting-serverless-function-injection &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/detecting-serverless-function-injection` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/detecting-serverless-function-injection` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/plurigrid/asi.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/detecting-serverless-function-injection &&
cp -R "$tmp/plugins/asi/skills/detecting-serverless-function-injection" ~/.cursor/skills/detecting-serverless-function-injection &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/detecting-serverless-function-injection` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/plurigrid/asi.git --path plugins/asi/skills/detecting-serverless-function-injection
```

Or copy the folder to `~/.gemini/skills/detecting-serverless-function-injection` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/detecting-serverless-function-injection`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/plurigrid/asi.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/detecting-serverless-function-injection &&
cp -R "$tmp/plugins/asi/skills/detecting-serverless-function-injection" ~/.copilot/skills/detecting-serverless-function-injection &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/detecting-serverless-function-injection` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/plurigrid/asi.git
```

Then copy `asi/plugins/asi/skills/detecting-serverless-function-injection` into your agent's skills folder as `detecting-serverless-function-injection`. Agents that support SKILL.md read one folder per skill.

## FAQ

### How do I install Detecting serverless function injection in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/detecting-serverless-function-injection to use it in all your projects, or to .claude/skills/detecting-serverless-function-injection in one project. Or install the asi plugin, which includes it: /plugin marketplace add plurigrid/asi, then /plugin install asi@asi.

### Does Detecting serverless function injection run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Detecting serverless function injection?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Detecting serverless function injection?

The closest alternatives to Detecting serverless function injection are Gem devops guidelines, Azure logic apps standard CLI, Azure container registry CLI, Azure well architected review and Azure smart city iot solution builder.

## Alternatives

- [Gem devops guidelines](https://ai-powered.com/skills/gem-devops-guidelines): Gem devops guidelines is an open-source agent skill for cloud and infrastructure.
- [Azure logic apps standard CLI](https://ai-powered.com/skills/azure-logic-apps-standard-cli): Azure logic apps standard CLI is an open-source agent skill for cloud and infrastructure.
- [Azure container registry CLI](https://ai-powered.com/skills/azure-container-registry-cli): Azure container registry CLI is an open-source agent skill for cloud and infrastructure.
- [Azure well architected review](https://ai-powered.com/skills/azure-well-architected-review): Azure well architected review is an open-source agent skill for cloud and infrastructure.
- [Azure smart city iot solution builder](https://ai-powered.com/skills/azure-smart-city-iot-solution-builder): Azure smart city iot solution builder is an open-source agent skill for cloud and infrastructure.
- [Azure deployment preflight](https://ai-powered.com/skills/azure-deployment-preflight): Azure deployment preflight is an open-source agent skill for cloud and infrastructure.
- [Arduino azure iot edge integration](https://ai-powered.com/skills/arduino-azure-iot-edge-integration): Arduino azure iot edge integration is an open-source agent skill for cloud and infrastructure.
- [Azure devops CLI](https://ai-powered.com/skills/azure-devops-cli): Azure devops CLI is an open-source agent skill for cloud and infrastructure.

---
Source: https://ai-powered.com/skills/detecting-serverless-function-injection
