tmpfile

c · standard library
sinkDerived from model facts
RoleSink
WeaknessCWE-377
WatchesReturnValue
Kindinsecure-temp-file
Confidencelow
Corroboration1

Sink boundary: Temporary-file creation is modeled because names, permissions, or placement can be attacker-influenced.

Argument map · what each slot does

The pack does not provide a callable signature for this record; the watched access path is shown directly.

No positional argument is specified; inspect the return value or named access path in the model facts below.
The weakness
CWE-377
Insecure Temporary File

Temporary files are created or used in a way that exposes data or enables races.

What goes wrong
Attacker's-eye view · insecure-temp-file

A race or predictable path lets an attacker read, replace, or redirect temporary data.

// modeled boundary: ReturnValue tmpfile(attacker_influenced_value);
To decide if this call is a bug, check
1Use an exclusive, random creation API.
2Set restrictive permissions.
3Keep the file in a trusted directory.
These checks require the surrounding codebase. The model names the boundary; it does not decide reachability or prove that a guard dominates every path.
Is this a bug in your code?Atropos stops here — by design

Atropos identifies ReturnValue as a insecure-temp-file sink. It cannot see whether untrusted data reaches this call in your repository.

Lachesis is the codebase-level step: it traces reachability and guards for this symbol.

Check this symbol in Lachesis
The family · insecure-temp-file

Across languages

mktemppython

What neutralizes it

No sanitizer of this kind is modeled.

Model facts · verbatim from the pack
RoleKindAccess pathModel IDConfidence
sinkinsecure-temp-fileReturnValuec.std.tmpfile.retlow · corrob. 1