Local Privilege Escalation via Keploy’s Log File
Keploy's logger opened keploy-logs.txt in the current directory and chmodded it to 0777 without checking whether the pathname was a symlink, so a planted symlink could make root append to and world-write a protected file such as /etc/passwd. A local attacker could then modify that file and potentially gain root.
Published on medium.com
Bug Bounty
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Context
Keploy is an open-source testing tool that records API traffic and generates test cases and mocks from it. On native Linux, its agent runs as root so that it can attach eBPF hooks. That privileged context is what turns an otherwise ordinary logging routine into a security boundary.
Every Keploy run initialises a logger that writes to keploy-logs.txt in the current working directory. The logger opens the file for appending, creates it if needed, and then sets its mode to 0777. The current working directory is normally the project being tested, which is often a cloned repository or a shared checkout on a team machine, so its contents are not necessarily trusted by the person running the command.
The issue was reported to the Keploy maintainers, fixed in v3.6.109, and disclosed in GHSA-cmm2-f5q4-x436, rated High (CVSS 7.3). The chmod dates back to February 2024 (PR #1480), so v2 releases and v3 releases before v3.6.109 are affected. This write-up is the second of two; the first covers the self-updater.
Setup
The precondition is a native Linux installation where the Keploy agent runs as root. The attacker needs to control the keploy-logs.txt pathname in a directory where a privileged Keploy process will start. That can be achieved through a repository the victim clones or a shared checkout the attacker can modify. Git preserves symbolic links, so a repository can carry keploy-logs.txt as a symlink to /etc/passwd without containing any executable or exploit script.
The researcher also reproduced the issue with an in-tree Go test.
Finding it
While reviewing Keploy's source, the researcher looked at New() in utils/log/logger.go, which runs during logging initialisation:
logFile, err := os.OpenFile( "keploy-logs.txt", os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0777,)
err = os.Chmod("keploy-logs.txt", 0777)
Two things stood out:
os.OpenFilefollows a symlink. WithoutO_NOFOLLOWor validation of the opened file, the file descriptor can refer to the symlink's target.os.Chmodoperates by pathname and follows the symlink. The target's permissions are changed to0777. Unlike the creation mode,os.Chmodignores the process umask.
Nothing checked whether the file was a regular file, had a single hard link, or belonged to an acceptable owner. Because the log lives in whatever directory Keploy runs in, and that directory is usually the project being tested, the process is accessing untrusted content as root. That mismatch is the core of the finding.
Exploitation
Step 1: Plant the symlink
An attacker places a symlink, keploy-logs.txt -> /etc/passwd, in a project directory, either through a repository or a shared checkout they can modify. No executable is needed; the symlink alone is the payload.
Step 2: Get a privileged run in that directory
A victim runs a Keploy command there with sudo, even sudo keploy --help. Logging initialises before the command does its main work, so the vulnerable code runs regardless of what the command would otherwise do.
Step 3: Root follows the link
Root opens /etc/passwd for appending, writes Keploy log lines into it, and changes its mode to 0777. Any local user can now modify /etc/passwd. Depending on the system's configuration and the changes made, this can provide a path to root.
The target determines the outcome. With /etc/passwd, world-writable permissions can enable a local attacker to add or modify account entries and potentially obtain root access. With /etc/sudoers, the result may instead be a broken privilege-escalation mechanism, because sudo can reject a file with unsafe permissions. Either way, a root-owned file has been modified and exposed to every local user.
Step 4: Reproduce with a harmless target
On an affected version, the same behaviour can be demonstrated using a harmless root-owned file:
sudo install -m 644 -o root /dev/null /tmp/victimmkdir demo && cd demoln -s /tmp/victim keploy-logs.txtsudo keploy --helpls -l /tmp/victim
On an affected version, the target can end up with mode -rwxrwxrwx, with Keploy's log appended to it. The logger wrote to and changed the permissions of the symlink's target instead of refusing the link.
Step 5: Confirm with a Go test
The test creates a file to stand in for a protected target, makes keploy-logs.txt a symlink to it, calls log.New(), and reads the target's mode:
symlink target mode after log.New(): -rwxrwxrwx
Root cause
The logger trusts a pathname in a directory that someone else may control. os.OpenFile without O_NOFOLLOW resolves a symlink and hands back a descriptor to its target, and os.Chmod resolves the pathname again and changes the target's mode to 0777, ignoring the umask. There is no check that the opened file is a regular file, has a single hard link, or is owned by an acceptable user.
Two other code paths used the same pathname, adding further concerns:
- Crash reporting. On a crash, Keploy read
./keploy-logs.txtand attached its contents to a Sentry report. If Keploy runs as root and the pathname resolves to/etc/shadow, the crash reporter could read password hashes and transmit them to an external service. This is a potential confidentiality impact in addition to the file-integrity issue. - Cleanup. At exit, Keploy removed
./keploy-logs.txt.os.Removeremoves a symlink itself, not its target, so cleanup does not directly delete the target. However, it still operated on whatever the pathname referred to at exit, rather than verifying that it was the file opened during initialisation.
The broader lesson is file identity: opening a file safely is not enough if later code looks up the pathname again and trusts whatever it finds.
Kernel symlink protections did not help. Linux's fs.protected_symlinks and fs.protected_regular are not universal protections against symlink-based attacks. Their restrictions apply to particular scenarios, notably certain operations in sticky, world-writable directories such as /tmp. A typical project directory does not meet those conditions, so the application must validate the file it opens rather than rely on these kernel settings.
Impact
A local attacker who can influence the contents of a directory where a privileged Keploy run starts can cause root to append log lines to a file the symlink points to and make that file world-writable. With /etc/passwd as the target, any local user can then modify account entries, which, depending on the system's configuration and the changes made, can provide a path to root. In both cases a root-owned file has been modified and exposed to every local user.
The crash reporter adds a potential confidentiality impact: if the pathname resolves to /etc/shadow during a crash, password hashes could be read and sent to an external service.
The attack requires a privileged Keploy run in a directory whose keploy-logs.txt pathname the attacker controls, and it affects v2 releases and v3 releases before v3.6.109.
Fix
The maintainers fixed the issue in PR #4729, released in v3.6.109. The fix addresses the underlying trust problem rather than simply changing the permission constant.
- Refuse symlinks and prevent FIFO hangs. The log is opened with
O_NOFOLLOW, so a symlink at that pathname is refused.O_NONBLOCKalso prevents a planted FIFO from hanging startup during the open. - Validate the opened file. The file must be regular, have exactly one hard link, and be owned by an acceptable user: the current user, the user who invoked
sudo, or the directory's owner. If validation fails, Keploy leaves the file untouched and logs to the console instead. - Set permissions through the file handle. New log files use mode
0644. Existing logs with overly permissive modes are tightened through the open file handle, rather than by resolving the pathname again. A log created by root undersudois also handed back to the invoking user. - Preserve file identity throughout the lifecycle. Cleanup and crash reporting verify that the pathname still refers to the file opened by the current run, using
os.SameFile. The crash reporter also avoids following a symlink when reading the log.
When Keploy cannot establish that the file is safe to use, it stops using it rather than trying to repair an untrusted path.
Variants to test
- Other log or state files written by privileged tools. Look for any fixed filename opened in the current directory by a process running as root. A positive result is that a symlink at that name causes the target to be written to or have its mode changed.
- Crash and telemetry paths. Check whether crash handlers or telemetry uploaders re-read the same pathname. A positive result is that a symlink to a sensitive file causes its contents to be read and transmitted.
- Cleanup paths. Check whether exit handlers remove or rename files by pathname. A positive result is that the handler acts on whatever the pathname resolves to at exit rather than the file opened at startup.
- FIFO and device files. Plant a FIFO at the log pathname and see whether startup hangs. A positive result is a hang or block during initialisation.
- Hard-link tricks. Plant a hard link to a sensitive file and see whether the tool accepts it. A positive result is that the tool writes to or changes the mode of a file with more than one link.
- Permission changes by pathname. Look for
chmodor equivalent calls that resolve a pathname after opening. A positive result is that the mode of a symlink target is changed even though the opened file was different.
Takeaways
- Privilege context changes the threat model. Code that appears harmless as a normal user, such as opening a log in the current directory, becomes an attack surface when it runs as root.
- Don't trust pathnames in directories someone else controls. Use
O_NOFOLLOW, inspect the opened file withfstat, and validate its type, link count, and ownership. - Avoid pathname-based permission changes. Set permissions on the opened file and use the least permissive mode required.
- Preserve file identity throughout the lifecycle. Initialisation, writes, cleanup, and crash reporting should operate on the same verified file, not whatever a pathname happens to resolve to later.
Logging and cleanup run automatically, before a command has really started or after it has already failed. That is exactly why their filesystem assumptions are easy to miss during review.
References
- Keploy Security Advisory: GHSA-cmm2-f5q4-x436
- Keploy PR #4729: The fix
- PR #1480: Original change
- Part 1: Local Privilege Escalation in Keploy's Self-Updater
Fixed in Keploy v3.6.109.
What happened, in plain words
Keploy is a free, open-source tool for testing software. It watches the network traffic that an application sends and receives (its API calls), records it, and turns it into repeatable test cases. On a normal Linux computer, part of Keploy has to run with the highest level of permission on the machine, the same level as the system administrator, because it needs to attach itself to the operating system's kernel to observe that traffic. In Linux terms, that highest level is called root.
Every time Keploy runs, it writes a log file called keploy-logs.txt in whatever folder you started it from. A log is just a running diary of what a program did, kept in a text file so you can read it later when something goes wrong. The problem was that Keploy opened this file without checking what it really was, and then set its permissions so that everyone on the computer could read, write and execute it.
On Linux, a file name can be a shortcut to another file. That shortcut is called a symbolic link, or symlink. If someone puts a symlink called keploy-logs.txt in a project folder, pointing at a sensitive system file such as /etc/passwd (the file that lists the user accounts on the machine), then when root runs Keploy in that folder, root writes its diary into the sensitive file and makes that sensitive file writable by every user. That is a local privilege escalation: a normal user on the machine can gain power they should not have, depending on the system's configuration.
The researcher reported it to the Keploy maintainers. It was fixed in version v3.6.109 and published as security advisory GHSA-cmm2-f5q4-x436, rated High with a CVSS score of 7.3. CVSS is a standard 0 to 10 score for how serious a security flaw is. The line of code that caused it dates back to February 2024 (pull request #1480), so all v2 releases and every v3 release before v3.6.109 are affected. This is the second of two write-ups; the first covered Keploy's self-updater.
Background: the pieces you need to know
Before the details, a few ideas from zero.
- Open source. The program's source code is public, so anyone can read it, including people looking for mistakes. That is how this bug was found: by reading the code, not by attacking a live system.
- Root and
sudo. Linux has user accounts. Root is the all-powerful one.sudois a command you put in front of another command to say "run this one as root". For example,sudo keploy --helpruns Keploy's help command with root power. - File permissions. Every file on Linux has a mode, a short code saying who may read it, write to it, or execute it. The mode
0777means everyone (the owner, the group, and everybody else) may read, write and execute.0644means the owner may read and write, and everyone else may only read.-rwxrwxrwxis how thels -lcommand displays a0777file:rfor read,wfor write,xfor execute, repeated for each of the three groups. - Symbolic link (symlink). A file that is really just a signpost saying "the real file is over there". Opening the symlink opens the file it points to. A symlink can point anywhere, including at system files.
- Hard link. A second name for the same file on disk. Both names are equally real; there is no "original" and "shortcut". A normal file has exactly one hard link unless someone deliberately adds more.
- Working directory. The folder you are standing in when you run a command. When a program opens a file by a plain name like
keploy-logs.txt, it means "in the working directory". - Git and cloned repositories. Git is the tool programmers use to track changes to code. A repository is a project's history and files. Cloning means copying a repository from somewhere else onto your machine. Git faithfully preserves symlinks, so a repository can contain a symlink without containing any program at all.
- eBPF hooks. A Linux feature that lets a privileged program attach small observers to the kernel to watch what happens on the system. Keploy uses it to record network traffic, which is why its agent needs root.
- umask. A per-process setting that quietly removes some permission bits when a new file is created. It is a safety net. Some operations respect it and some do not.
- FIFO. A special file that acts like a pipe: reading from it waits until someone writes to it. If a program opens a FIFO for reading and nobody ever writes, the program can hang forever.
- Sentry. A service that collects crash reports from software so developers can see what went wrong. Keploy sends crash information there.
The setup needed for the attack
The precondition is a normal Linux installation where the Keploy agent runs as root. The attacker needs to control the keploy-logs.txt name in a folder where a root Keploy run will start. That can happen through a repository the victim clones, or a shared checkout on a team machine that the attacker can modify.
Git preserves symlinks, so a repository can carry keploy-logs.txt as a symlink to /etc/passwd without containing any executable or exploit script. That matters: the victim does not have to run anything suspicious. They just clone a project and run the tool.
The researcher also reproduced the issue with a Go test inside the project. Go is the programming language Keploy is written in.
Finding it
While reading Keploy's source, the researcher looked at a function called New() in the file utils/log/logger.go. This function runs during logging initialisation, meaning it runs at the very start of every Keploy command, before the command does its real work.
logFile, err := os.OpenFile( "keploy-logs.txt", os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0777,)
Line by line, in plain words:
logFile, err :=means "call the function on the right and store its two results": the opened file (logFile) and any error (err).os.OpenFile(...)is the operating system call that opens a file. Its first argument is the name,"keploy-logs.txt", a plain name, so it means the file in the current working directory.os.O_APPENDmeans "write new text at the end of the file, do not overwrite what is there".os.O_CREATEmeans "if the file does not exist, create it".os.O_WRONLYmeans "open it for writing only".0777is the mode to use if the file has to be created: everyone can read, write and execute.
The important detail is what is missing: there is no O_NOFOLLOW. That is the flag that tells the system "if this name is a symlink, refuse to open it". Without it, the open call happily follows the signpost and hands back the file at the other end.
err = os.Chmod("keploy-logs.txt", 0777)
os.Chmodmeans "change the mode of a file".- The first argument is again the plain name
"keploy-logs.txt", so the system looks the name up from scratch, in the current directory. 0777is the new mode: everyone can read, write and execute.err =stores any error the call returns.
Two things stood out to the researcher:
os.OpenFilefollows a symlink. WithoutO_NOFOLLOWor a check on the file that was actually opened, the handle can refer to the symlink's target.os.Chmodworks by name and follows the symlink too. The target's permissions are changed to0777. Unlike the creation mode,os.Chmodignores the process umask, so the safety net does not apply.
Nothing checked whether the file was a regular file, had a single hard link, or belonged to an acceptable owner. Because the log lives in whatever folder Keploy runs in, and that folder is usually the project being tested, the process is touching content someone else may have supplied, while running as root. That mismatch is the heart of the finding.
Exploitation, step by step
Step 1: Plant the symlink
An attacker places a symlink, keploy-logs.txt -> /etc/passwd, in a project folder, either through a repository or a shared checkout they can modify. No executable is needed; the symlink alone is the payload. The arrow means "this name points at that file".
Step 2: Get a privileged run in that folder
A victim runs a Keploy command there with sudo, even something as harmless as sudo keploy --help. Logging initialises before the command does its main work, so the vulnerable code runs no matter what the command would otherwise do. Asking for help is enough.
Step 3: Root follows the link
Root opens /etc/passwd for appending, writes Keploy log lines into it, and changes its mode to 0777. Any local user can now modify /etc/passwd. Depending on the system's configuration and the changes made, this can provide a path to root.
The target decides the outcome. With /etc/passwd, world-writable permissions can let a local attacker add or modify account entries and potentially obtain root access. With /etc/sudoers (the file that says who may use sudo), the result may instead be a broken privilege-escalation mechanism, because sudo can reject a file with unsafe permissions. Either way, a root-owned file has been modified and exposed to every local user.
Step 4: Reproduce with a harmless target
On an affected version, the same behaviour can be shown with a harmless root-owned file, so you do not have to touch a real system file to see it:
sudo install -m 644 -o root /dev/null /tmp/victimmkdir demo && cd demoln -s /tmp/victim keploy-logs.txtsudo keploy --helpls -l /tmp/victim
This block is printed as one run of text in the report, so read it as the following commands in order:
sudo install -m 644 -o root /dev/null /tmp/victimcreates an empty file at/tmp/victim, owned by root, with mode0644.installhere is a file-copying command;/dev/nullis the empty "nothing" device, so the result is an empty file. This stands in for a sensitive system file.mkdir demo && cd demomakes a folder calleddemoand moves into it. This is the project folder.ln -s /tmp/victim keploy-logs.txtcreates the symlink: the namekeploy-logs.txtnow points at/tmp/victim.sudo keploy --helpruns Keploy as root in that folder. This is the victim's action.ls -l /tmp/victimlists the file's details so you can see its mode.
On an affected version, the target can end up with mode -rwxrwxrwx, with Keploy's log appended to it. The logger wrote to and changed the permissions of the symlink's target instead of refusing the link.
Step 5: Confirm with a Go test
The test creates a file to stand in for a protected target, makes keploy-logs.txt a symlink to it, calls log.New(), and reads the target's mode:
symlink target mode after log.New(): -rwxrwxrwx
That single line is the test's output. It says: after the logging setup ran, the file the symlink pointed at had the mode -rwxrwxrwx, meaning everyone can read, write and execute it. The test proves the behaviour without needing a real system file.
Root cause
The logger trusts a name in a folder that someone else may control. os.OpenFile without O_NOFOLLOW resolves a symlink and hands back a handle to its target, and os.Chmod resolves the name again and changes the target's mode to 0777, ignoring the umask. There is no check that the opened file is a regular file, has a single hard link, or is owned by an acceptable user.
Two other code paths used the same name, adding further concerns:
- Crash reporting. On a crash, Keploy read
./keploy-logs.txtand attached its contents to a Sentry report. If Keploy runs as root and the name resolves to/etc/shadow(the file that holds password hashes), the crash reporter could read password hashes and send them to an external service. That is a potential confidentiality impact on top of the file-integrity issue. Confidentiality means secrets leaking out; integrity means data being changed. - Cleanup. At exit, Keploy removed
./keploy-logs.txt.os.Removeremoves a symlink itself, not its target, so cleanup does not directly delete the target. However, it still acted on whatever the name referred to at exit, rather than checking that it was the file opened at startup.
The broader lesson is file identity: opening a file safely is not enough if later code looks the name up again and trusts whatever it finds. Think of checking a parcel at the door and then, later, accepting a different parcel because it has the same label.
Kernel symlink protections did not help. Linux's fs.protected_symlinks and fs.protected_regular are not universal shields against symlink attacks. Their restrictions apply to particular situations, notably certain operations in sticky, world-writable folders such as /tmp. A sticky folder is one where users can only delete their own files. A typical project folder does not meet those conditions, so the application must check the file it opens rather than rely on these kernel settings.
Impact
A local attacker who can influence the contents of a folder where a privileged Keploy run starts can make root append log lines to a file the symlink points to and make that file world-writable. With /etc/passwd as the target, any local user can then modify account entries, which, depending on the system's configuration and the changes made, can provide a path to root. With /etc/sudoers, the result may instead be a broken privilege-escalation mechanism, because sudo can reject a file with unsafe permissions. In both cases a root-owned file has been modified and exposed to every local user.
The crash reporter adds a potential confidentiality impact: if the name resolves to /etc/shadow during a crash, password hashes could be read and sent to an external service.
The attack requires a privileged Keploy run in a folder whose keploy-logs.txt name the attacker controls, and it affects v2 releases and v3 releases before v3.6.109.
The fix
The maintainers fixed the issue in PR #4729, released in v3.6.109. The fix addresses the underlying trust problem rather than simply changing the permission number.
- Refuse symlinks and prevent FIFO hangs. The log is opened with
O_NOFOLLOW, so a symlink at that name is refused.O_NONBLOCKalso stops a planted FIFO from hanging startup during the open. In plain words: if the name is a signpost, do not follow it; and if it is a pipe that would make us wait forever, do not wait. - Validate the opened file. The file must be regular, have exactly one hard link, and be owned by an acceptable user: the current user, the user who invoked
sudo, or the folder's owner. If the check fails, Keploy leaves the file untouched and logs to the console instead. Validating means checking the file you actually opened, not the name you used to open it. - Set permissions through the file handle. New log files use mode
0644. Existing logs with overly open modes are tightened through the open file handle, rather than by looking the name up again. A log created by root undersudois also handed back to the invoking user, so it belongs to the person who ran the command. - Preserve file identity throughout the lifecycle. Cleanup and crash reporting check that the name still refers to the file opened by the current run, using
os.SameFile. The crash reporter also avoids following a symlink when reading the log.
When Keploy cannot establish that the file is safe to use, it stops using it rather than trying to repair an untrusted path. Refusing is safer than guessing.
Variants to test
If you want to look for similar bugs in other tools, these are the angles the researcher suggests. Each one names what to look for and what a positive result looks like.
- Other log or state files written by privileged tools. Look for any fixed filename opened in the current folder by a process running as root. A positive result is that a symlink at that name causes the target to be written to or have its mode changed.
- Crash and telemetry paths. Check whether crash handlers or telemetry uploaders re-read the same name. A positive result is that a symlink to a sensitive file causes its contents to be read and sent.
- Cleanup paths. Check whether exit handlers remove or rename files by name. A positive result is that the handler acts on whatever the name resolves to at exit rather than the file opened at startup.
- FIFO and device files. Plant a FIFO at the log name and see whether startup hangs. A positive result is a hang or block during initialisation.
- Hard-link tricks. Plant a hard link to a sensitive file and see whether the tool accepts it. A positive result is that the tool writes to or changes the mode of a file with more than one link.
- Permission changes by name. Look for
chmodor equivalent calls that resolve a name after opening. A positive result is that the mode of a symlink target is changed even though the opened file was different.
Takeaways
- Privilege context changes the threat model. Code that looks harmless as a normal user, such as opening a log in the current folder, becomes an attack surface when it runs as root. A threat model is simply the list of things that could go wrong and who could cause them.
- Do not trust names in folders someone else controls. Use
O_NOFOLLOW, inspect the opened file withfstat(a call that asks the system about the file you already have open), and check its type, link count, and ownership. - Avoid permission changes by name. Set permissions on the opened file and use the least permissive mode required. Least permissive means give only the access that is actually needed.
- Preserve file identity throughout the lifecycle. Startup, writes, cleanup, and crash reporting should all work on the same checked file, not whatever a name happens to point at later.
Logging and cleanup run automatically, before a command has really started or after it has already failed. That is exactly why their assumptions about files are easy to miss during review.
References
- Keploy Security Advisory: GHSA-cmm2-f5q4-x436
- Keploy PR #4729: The fix
- PR #1480: Original change
- Part 1: Local Privilege Escalation in Keploy's Self-Updater
Fixed in Keploy v3.6.109.
Glossary
- API: the set of requests one program can send to another, and the replies it gets back. Keploy records these to build tests.
- Append: add new text at the end of a file without erasing what is already there.
- Chmod: the operation that changes a file's permissions.
- Cloned repository: a copy of a code project, including its history and files, taken from somewhere else.
- Confidentiality: keeping secrets from being read by people who should not see them.
- Crash reporter: the part of a program that collects information when the program fails and sends it to a service such as Sentry.
- CVSS: a standard 0 to 10 score for the severity of a security flaw.
- eBPF hooks: a Linux feature that lets a privileged program attach small observers to the kernel to watch system activity.
- FIFO: a special file that behaves like a pipe; reading waits until someone writes.
- File descriptor / file handle: the system's internal reference to an open file, used for reading and writing.
- fstat: a system call that reports details about a file you already have open, such as its type, owner and link count.
- Git: the tool programmers use to track changes to code and share projects.
- Go: the programming language Keploy is written in.
- Hard link: an additional name for the same file on disk; both names are equally real.
- Integrity: keeping data unchanged and correct, so nobody can tamper with it.
- Kernel: the core of the operating system that manages files, memory and processes.
- Local privilege escalation: a normal user on a machine gaining powers they should not have, usually root.
- Log file: a text file where a program records what it did, for later reading.
- Mode: the short code on a Linux file saying who may read, write or execute it, such as
0777or0644. - O_NOFOLLOW: an open flag meaning "if the name is a symlink, refuse".
- O_NONBLOCK: an open flag meaning "do not wait if the file would block", used to avoid hangs on FIFOs.
- Open source: software whose source code is public and can be read by anyone.
- os.Chmod: the Go function that changes a file's mode by name.
- os.OpenFile: the Go function that opens a file, with flags controlling how.
- os.Remove: the Go function that deletes a file or symlink by name.
- os.SameFile: the Go function that checks whether two file references describe the same file on disk.
- Pathname: the name or path used to refer to a file, such as
keploy-logs.txtor/etc/passwd. - Permission: the right to read, write or execute a file, granted per user or group.
- Privilege context: the level of power a program runs with, for example as a normal user or as root.
- Pull request (PR): a proposed change to a code project, reviewed before it is merged.
- Root: the all-powerful administrator account on Linux.
- Sentry: an external service that collects crash reports from software.
- Sticky folder: a folder, such as
/tmp, where users may only delete their own files. - sudo: a command that runs another command with root power.
- sudoers: the system file that defines who may use
sudoand for what. - Symlink (symbolic link): a file that acts as a signpost to another file; opening it opens the target.
- Telemetry: data a program automatically sends about its own behaviour.
- Threat model: the list of things that could go wrong and who could cause them.
- umask: a per-process setting that removes some permission bits when a new file is created.
- Working directory: the folder you are in when you run a command; plain filenames refer to it.
- World-writable: a file that every user on the machine may write to.
/etc/passwd: the system file listing user accounts./etc/shadow: the system file holding password hashes./etc/sudoers: the system file controlling who may usesudo.