syscall package. Exec(), RawSyscall(), and socket operations are low-level command and network injection sinks.
.Getenv().Exec().Getenv()SourceGetenv(key string) (value string, found bool)
Gets environment variable. Source of external data.
return.Exec()SinkExec(argv0 string, argv []string, envv []string) error
Executes program directly. Command injection sink when argv is user-controlled.
0| FQN | Field | |
|---|---|---|
| syscall | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
// standard library — no go.mod entry required
from codepathfinder.go_rule import GoSyscall