You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
KICS should print out a warning and skip the file if it does not exist/points to a non-existing file.
Actual Behavior
When scanning a symbolic link that points to a non-existing file, kics returns an error and closes instead of skipping the file.
folder content:
ls -al
total 0
drwxr-xr-x@ 3 user staff 96 Aug 20 13:16 .
drwxr-xr-x@ 28 user staff 896 Aug 20 13:10 ..
lrwxr-xr-x@ 1 user staff 17 Aug 20 13:12 test -> doesnotexist/test
scan command used:
docker run -t -v $PWD:/path checkmarx/kics:v1.7.5 scan -p /path/test -v --log-level TRACE
10:17AM DBG console.scan()
10:17AM DBG console.scan()
...
Scanning with Keeping Infrastructure as Code Secure v1.7.5
...
10:17AM INF Scanning with Keeping Infrastructure as Code Secure v1.7.5
10:17AM INF Operating system: linux
10:17AM INF Total memory: 7.8G
10:17AM INF CPU: 8.0
10:17AM DBG storage.NewMemoryStorage()
10:17AM DBG Looking for queries in executable path and in current work directory
10:17AM DBG helpers.GetDefaultQueryPath()
10:17AM DBG helpers.GetExecutableDirectory()
10:17AM DBG Queries found in /app/bin/assets/queries
10:17AM ERR stat /path/test: no such file or directory
Error: stat /path/test: no such file or directory
...
10:17AM ERR Failed to run application error="stat /path/test: no such file or directory"
saars-orca
changed the title
KICS throws an error and closes when scanning a invalid symbolic link directly
bug<engine>: kics throws an error and closes when scanning a invalid symbolic link directly
Aug 20, 2023
saars-orca
changed the title
bug<engine>: kics throws an error and closes when scanning a invalid symbolic link directly
bug(<engine>): kics throws an error and closes when scanning a invalid symbolic link directly
Aug 20, 2023
saars-orca
changed the title
bug(<engine>): kics throws an error and closes when scanning a invalid symbolic link directly
bug(engine): kics throws an error and closes when scanning a invalid symbolic link directly
Aug 20, 2023
Expected Behavior
KICS should print out a warning and skip the file if it does not exist/points to a non-existing file.
Actual Behavior
When scanning a symbolic link that points to a non-existing file, kics returns an error and closes instead of skipping the file.
folder content:
scan command used:
kics_debug.log
Steps to Reproduce the Problem
(Command line arguments and flags used)
ln -s doesnotexist/test test
docker run -t -v $PWD:/path checkmarx/kics:v1.7.5 scan -p /path/test -v --log-level TRACE
Specifications
(N/A if not applicable)
The text was updated successfully, but these errors were encountered: