# keryn sca malicious

Describes Keryn 0.5.2 and keryn-rules 0.8.0.

> keryn sca malicious: OSV-Scanner execution, SCA report intake with completion receipts, complete-package inventory, offline advisory assessment, Deno inventory, SBOM-to-files comparison

Source: https://keryn.dev/docs/reference/cli/sca-malicious/

> **Caution: Next release: keryn sca malicious**
> On main; not in Keryn 0.5.2, the latest release.

OSV-Scanner execution, SCA report intake with completion receipts, complete-package inventory, offline advisory assessment, Deno inventory, SBOM-to-files comparison.

```text
keryn sca malicious <directory|package.tar.gz> --out <new-directory> [--base <hook-snapshot.json|directory>] [--online]
```

## Options

```text
keryn sca malicious <directory|package.tar.gz|wheel.whl> --out <new-directory> [--base <hook-snapshot.json|directory|baseline.whl>] [--online] [--fail-on error|warning|info|none]
Inspect supplied package contents without running them. Online queries send resolved package coordinates only; unlisted packages have no established safety assessment.
```

## Examples

```sh
# Inspect available package contents using shipped, dated MAL data.
keryn sca malicious node_modules --out out/hooks
```

## Exit codes

| Code | Meaning |
|---|---|
| 0 | pass |
| 1 | findings or a requested change gate |
| 2 | usage error or invalid input |
| 3 | incomplete or unknown completion |
| 4 | execution or normalization failure |

## Environment

| Variable | Meaning | Default |
|---|---|---|
| `GITHUB_TOKEN` | Token for keryn decide export --github. There is no flag for it. | unset |
| `GITLAB_TOKEN` | Token for keryn decide export --gitlab. There is no flag for it. | unset |
