oliver-kriska/claude-elixir-phoenix / targets/codex/skills/phx-deps-audit
phx-deps-audit
FlaggedAudit Hex deps for supply-chain security risk — bidi chars; Use after mix deps.update, when checking if a package…
priv/semgrep/elixir-supply-chain.yaml
View on GitHubrules:
- id: elixir-compile-time-http
message: HTTP fetch at compile time inside __before_compile__
languages: [elixir]
severity: ERROR
pattern-either:
- patterns:
- pattern-inside: |
defmacro __before_compile__($ENV) do
...
end
- pattern: System.cmd("curl", $ARGS)
- patterns:
- pattern-inside: |
defmacro __before_compile__($ENV) do
...
end
- pattern: HTTPoison.get(...)
- id: elixir-eval-string
message: Code.eval_string with non-literal argument
languages: [elixir]
severity: ERROR
pattern-either:
- pattern: Code.eval_string($PAYLOAD)
- pattern: Code.eval_quoted($PAYLOAD)
pattern-not-either:
- pattern: Code.eval_string("$LITERAL")
- pattern: Code.eval_quoted("$LITERAL")
- id: elixir-dynamic-system-cmd
message: System.cmd with variable first argument
languages: [elixir]
severity: WARNING
pattern: System.cmd($CMD, $ARGS)
pattern-not: System.cmd("$LITERAL", $ARGS)
- id: elixir-base64-to-eval
message: Base.decode64 result fed directly to Code.eval_string
languages: [elixir]
severity: ERROR
pattern-either:
- pattern: Code.eval_string(Base.decode64!($X))
- patterns:
- pattern: |
$X = Base.decode64!(...)
...
Code.eval_string($X)
- id: elixir-on-load-with-side-effects
message: __on_load__ callback running System.cmd / File.write
languages: [elixir]
severity: ERROR
pattern-either:
- patterns:
- pattern-inside: |
def __on_load__() do
...
end
- pattern: System.cmd(...)
- patterns:
- pattern-inside: |
def __on_load__() do
...
end
- pattern: File.write(...)
- id: elixir-binary-to-term-literal
message: :erlang.binary_to_term called without :safe option
languages: [elixir]
severity: ERROR
patterns:
- pattern: :erlang.binary_to_term($X)
- pattern-not: :erlang.binary_to_term($X, [:safe])
- id: elixir-erlang-apply-dynamic
message: :erlang.apply with non-literal module or function name
languages: [elixir]
severity: ERROR
pattern: :erlang.apply($MOD, $FUN, $ARGS)
pattern-not: :erlang.apply($MOD, :$LITERAL_ATOM, $ARGS)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |