Skip to content

Bug: Tests break in normal run #1

@kaosmaja

Description

@kaosmaja

I am trying to get default Lynis to scan from a docker container, but the instructions here cause some tests to break.

Below I will only list the exceptions, but there were a multitude of tests that could not run:

GetHostID Exception found

2020-07-24 14:06:03 Exception: test has an exceptional event (GetHostID) with text Both ip and ifconfig tools are missing
2020-07-24 14:06:08 Exception: test has an exceptional event (GetHostID) with text Can't create HOSTID, command ip not found
2020-07-24 14:06:13 Result: no HOSTID available, trying to use SSH key as unique source
2020-07-24 14:06:13 Info: creating a HostID (version 2)
2020-07-24 14:06:13 Exception: test has an exceptional event (GetHostID) with text No unique host identifier could be created.
2020-07-24 14:06:18 Info: no HostID found or invalid one
2020-07-24 14:06:18 Info: no machine ID found
2020-07-24 14:06:18 ====

KRNL-5840:1

Performing test ID PKGS-7410 (Count installed kernel packages)
2020-07-24 14:06:28 Test: Checking how many kernel packages are installed
2020-07-24 14:06:28 Result: found no kernels from dpkg -l output, which is unexpected
2020-07-24 14:06:28 Exception: test has an exceptional event (KRNL-5840:1) with text Could not find any kernel packages via package manager

NETW-3004:1, NETW-3006:2, NETW-3008:2, NETW-3012:1

2020-07-24 14:06:34 ====
2020-07-24 14:06:34 Performing test ID NETW-3004 (Search for available network interfaces)
2020-07-24 14:06:34 Exception: test has an exceptional event (NETW-3004:1) with text No interfaces found on this system (OS=Linux)
2020-07-24 14:06:39 ====
2020-07-24 14:06:39 Performing test ID NETW-3006 (Get network MAC addresses)
2020-07-24 14:06:39 Exception: test has an exceptional event (NETW-3006:2) with text Missing ifconfig or ip command to collect hardware address (MAC)
2020-07-24 14:06:44 ====
2020-07-24 14:06:44 Performing test ID NETW-3008 (Get network IP addresses)
2020-07-24 14:06:44 Exception: test has an exceptional event (NETW-3008:2) with text Missing ifconfig or ip command to collect hardware address (MAC)
2020-07-24 14:06:49 ====2020-07-24 14:06:49 Performing test ID NETW-3012 (Check listening ports)
2020-07-24 14:06:49 Exception: test has an exceptional event (NETW-3012:1) with text netstat and ss binary missing to gather listening ports
2020-07-24 14:06:54 ====

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions