Commit graph

1294 commits

Author SHA1 Message Date
Sander Declerck
d03a3a3a4b
Improve output 2026-02-11 14:23:52 +01:00
Sander Declerck
bee196cc55
Check if the agents service is running before starting it 2026-02-11 14:23:52 +01:00
Sander Declerck
0be42c8132
Parse cli args in ultimate installation 2026-02-11 14:23:52 +01:00
Sander Declerck
14ff245924
Uninstall safe-chain agent if it's there, before re-installing 2026-02-11 14:23:51 +01:00
Sander Declerck
2bfce02e66
Fix linting 2026-02-11 14:23:51 +01:00
Sander Declerck
8410b94b4c
Improve updating existing agent install 2026-02-11 14:23:51 +01:00
Sander Declerck
7f6ce79f44
Overwrite the agent if it's already installed. 2026-02-11 14:23:50 +01:00
Sander Declerck
2a649c5ef8
Start and stop safe-chain agent's Windows service. 2026-02-11 14:23:50 +01:00
Sander Declerck
dba101daa7
Add ultimate installer for Windows 2026-02-11 14:23:50 +01:00
Uriel Corfa
b1fa9f5492
Add the same handler for fish 2026-02-11 14:23:50 +01:00
Uriel Corfa
11d9e26a2d
init-posix: preserve arguments when exec'ing the original_cmd 2026-02-11 14:23:50 +01:00
Uriel Corfa
607b4ee87d
Propagate command-not-found errors when invoking wrapped commands
Before this change, if a package manager was not installed, safe-chain still
sets the function and when invoked, the wrapper will invoke safe-chain, which
will exit with error code 127 when it fails to invoke the wrapped command. As an
example (with a shell prompt that shows $? when non-zero):

```
$ type -f pip
bash: type: pip: not found
1$ pip
127$
```

With this patch, the wrapper first checks for the existence of the wrapped
command (ignoring functions), and if no such command exists, it instructs the
shell to invoke it anyway. This results in the shell failing to find the
command, and reporting an error as if the wrapper function wasn't there:

```
$ source init-posix.sh
$ type -f pip
bash: type: pip: not found
1$ pip
Command 'pip' not found, but can be installed with:
sudo apt install python3-pip
127$
```
2026-02-11 14:23:49 +01:00
Sander Declerck
20cc62d6e1
Only allow wildcards for scoped packages (@scope/*) 2026-02-11 14:23:49 +01:00
Sander Declerck
2d609066c8
Allow trailing * for wildcard matching 2026-02-11 14:23:49 +01:00
Sander Declerck
d7a9884ff6
Allow to exclude packages from the minimum package age 2026-02-11 14:23:49 +01:00
Reinier Criel
4ef4218eb5
Remove comment 2026-02-11 14:23:49 +01:00
Reinier Criel
5c431291c7
Fix some logic 2026-02-11 14:23:48 +01:00
Reinier Criel
b7f793f1f9
Attempted fix for powershell swallowing '--' 2026-02-11 14:23:48 +01:00
bitterpanda
3210b68b43
Update packages/safe-chain/src/api/aikido.js 2026-02-11 14:23:48 +01:00
Sander Declerck
0e6d002b4c
Don't swallow error on retry 2026-02-11 14:23:48 +01:00
Sander Declerck
cf8e39c5fd
Handle pr comments 2026-02-11 14:23:48 +01:00
Sander Declerck
4a53a7b20d
Add tests for malware db retry 2026-02-11 14:23:47 +01:00
Sander Declerck
14e94dcb62
Retry downloading the malware database 3 times 2026-02-11 14:23:47 +01:00
Robert Slootjes
7377b5577a
Add Bitbucket Pipelines example 2026-02-11 14:23:47 +01:00
bitterpanda
a7388bbdcf
Update packages/safe-chain/src/registryProxy/interceptors/npm/modifyNpmInfo.js 2026-02-11 14:23:47 +01:00
Reinier Criel
2cba4be1aa
Include package name in logging when minimum package age is not met 2026-02-11 14:23:47 +01:00
Sander Declerck
86ae23332e
Merge pull request #315 from AikidoSec/gitlab-ci-cd
Document CI/CD for GitLab
2026-02-05 14:11:20 +01:00
bitterpanda
5796f12fa8
Merge pull request #316 from AikidoSec/powershell-executionpolicy-check-beta
Powershell: check  if the executionpolicy allows to run safe-chain
2026-02-05 13:12:16 +01:00
Sander Declerck
87c5eddc9e
Write warning when getting executionpolicy fails 2026-02-05 11:52:06 +01:00
Sander Declerck
8ea4463ac5
Update troubleshooting link 2026-02-05 11:38:28 +01:00
bitterpanda
32eb81337e
Merge pull request #317 from AikidoSec/kidk-logging
Remove duplicate verbose logging information from troubleshooting
2026-02-05 11:35:40 +01:00
Sander Declerck
446f45cc28
Add link to help 2026-02-05 11:35:30 +01:00
Samuel
cab1e11e95
Remove duplicate verbose logging information from troubleshooting
Removed section on enabling verbose logging for diagnostics.
2026-02-05 11:33:37 +01:00
Sander Declerck
149a28e0dc
Improve comments 2026-02-05 11:20:14 +01:00
Sander Declerck
03d67d92be
Change teardown order 2026-02-05 11:09:15 +01:00
Sander Declerck
369167e005
Error message indentation fix 2026-02-05 11:08:04 +01:00
Sander Declerck
bab128ab26
Undo install script changes 2026-02-05 11:03:49 +01:00
Sander Declerck
f1e5e7bab2
Improve error message 2026-02-05 11:01:56 +01:00
Sander Declerck
0dfa151b02
Fix linting 2026-02-05 10:45:45 +01:00
Sander Declerck
13f2ae6e22
Fix PSModulePath 2026-02-05 10:45:13 +01:00
Sander Declerck
aa461b27c3
Use safeSpawn 2026-02-05 10:24:28 +01:00
Sander Declerck
3e90c0abd1
Import module for execution policy 2026-02-05 10:12:43 +01:00
Sander Declerck
ad32a8d9be
Run command for execution policy with -Command 2026-02-05 10:05:26 +01:00
Sander Declerck
ff16530314
Fix linting 2026-02-05 09:52:18 +01:00
Sander Declerck
e9799e283f
Check powershell execution policy in setup function 2026-02-05 09:49:36 +01:00
Sander Declerck
c765438e63
Powershell: check if the executionpolicy allow to run safe-chain 2026-02-04 16:30:29 +01:00
Sander Declerck
90eba0a0b6
Document CI/CD for GitLab 2026-02-04 14:04:46 +01:00
bitterpanda
611fe8007f
Merge pull request #312 from AikidoSec/ultimate-verify-number-of-arguments
Verify the number of arguments for ultimate commands
2026-02-03 20:21:37 +01:00
Sander Declerck
e9ed6063c3
Verify the number of arguments for ultimate commands 2026-02-02 15:28:44 +01:00
Sander Declerck
b96bbc91a4
Merge pull request #311 from AikidoSec/add-log-cmd
add safe-chain ultimate logs & collect-logs
2026-01-30 16:33:51 +01:00