When something breaks
Pull-request checks
An attack often arrives as a small pull request: one new package, one changed line in a lockfile, one workflow that hands a stranger your secrets. Kiyesi reads what each pull request changes and tells you before it is merged.
Turn it on
Section titled “Turn it on”Pull-request checks use the same GitHub App as GitHub repositories. Once it is connected, each pull request on a watched repository is checked when it is opened, reopened, or gets new commits (a force push included).
If you connected GitHub before pull-request checks arrived, an owner of your organisation must accept two new permissions: Pull requests (read) and Checks (read and write). GitHub emails the owners; or open the organisation’s Settings, GitHub Apps, Kiyesi, Review request. Checks is the only thing the app can write: its own check.
What is checked
Section titled “What is checked”| Rule | What it finds | On the pull request |
|---|---|---|
| Malicious package | A package on OpenSSF’s list of malicious packages, in all eight languages | Fails |
| Lockfile tampering | A package from somewhere other than its registry or yours, or a checksum that changed while the version did not | Fails |
| Hidden code | Invisible or direction-reversing characters, and long encoded blocks that are run | Fails |
| Install script | A new install script that downloads and runs something, or a new dependency with an install script that is not on Kiyesi’s list of well-known ones | Neutral |
| Risky workflow | An action not pinned to a commit, a workflow that runs a stranger’s code with your secrets, a step that prints a secret | Neutral |
Make the check required in your branch protection, and a failing pull request cannot be merged. A neutral check never blocks.
Packages are read from:
| Language | Files |
|---|---|
| npm | package.json, package-lock.json, npm-shrinkwrap.json, yarn.lock, pnpm-lock.yaml |
| Python | requirements*.txt (pinned with ==), poetry.lock, Pipfile.lock, uv.lock |
| Go | go.mod, go.sum |
| Java | pom.xml (versions written out), gradle.lockfile |
| Ruby | Gemfile.lock |
| Rust | Cargo.lock |
| .NET | packages.lock.json, PackageReference in *.csproj |
| PHP | composer.lock |
To catch the same problems on a developer’s laptop, add the git hook: free, with no account.
What a finding tells you
Section titled “What a finding tells you”- What and where: the rule, the file and the lines, with secrets masked.
- Who: who opened it and from which fork or branch; whether the commit’s author differs from who pushed it; whether it is their first contribution, or their account is under 30 days old.
- How it got in, and how to remove it.
- On your servers: whether the same package is running on one of them now.
The Pull requests screen, next to Repositories, lists each problem once, naming every pull request it is in.
On a public repository, the check on GitHub says only that Kiyesi found an issue, with a link. The details stay in Kiyesi, where only your team can read them.
Less noise
Section titled “Less noise”- One alert per problem, however many pull requests it is in. It closes when the problem is fixed, accepted, or its pull requests are closed.
- Updates from Dependabot and Renovate never alert, except for a malicious package.
vendor/,node_modules/,dist/,build/and minified files are skipped.- Your own registries: add them on the Pull requests screen, and packages from them are not tampering.
- Known samples: add folders that hold malware samples on purpose, and they are skipped.
- Accept a finding: with a reason and an end date, up to a year. It is logged, and comes back sooner if the code changes.
Free and with credit
Section titled “Free and with credit”The malicious-package rule is free on every plan. The other four rules need credit; without it, the check says which rules it did not run. See also Free and with credit for repositories.
What Kiyesi keeps, and what it never does
Section titled “What Kiyesi keeps, and what it never does”Kiyesi reads only the changed files, and the whole of a changed dependency file or workflow, in memory. It keeps only what it found, with at most six lines. It never runs anything from a pull request, and never keeps your code.
A pull request is read up to 300 files, 5 MB in all and 1 MB per file, within 20 seconds; anything else is named as not read. If Kiyesi cannot finish, the check ends neutral, so its own trouble never blocks a merge.