Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kernel-hardening-checker
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
kernel-hardening-checker
Commits
3f293bca
Commit
3f293bca
authored
Mar 26, 2020
by
Alexander Popov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the README (describing installation)
parent
3c078276
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
README.md
README.md
+17
-9
No files found.
README.md
View file @
3f293bca
...
...
@@ -26,12 +26,20 @@ or exploitation techniques.
-
ARM64
-
ARM
##
Output examples
##
Installation
### Usage
You can install the package:
```
pip install git+https://github.com/a13xp0p0v/kconfig-hardened-check'
```
or simply run
`./bin/kconfig-hardened-check`
from the cloned repository.
## Usage
```
usage: kconfig-hardened-check
.py [-h] [-p {X86_64,X86_32,ARM64,ARM}
]
[-c CONFIG]
[--debug] [--json]
usage: kconfig-hardened-check
[-h] [-p {X86_64,X86_32,ARM64,ARM}] [-c CONFIG
]
[--debug] [--json]
Checks the hardening options in the Linux kernel config
...
...
@@ -45,15 +53,15 @@ optional arguments:
--json print results in JSON format
```
##
#
Output for `Ubuntu 18.04 (Bionic Beaver with HWE)` kernel config
## Output for `Ubuntu 18.04 (Bionic Beaver with HWE)` kernel config
```
$ ./
kconfig-hardened-check.py -c config_files/distros/ubuntu-bionic-generic.config
[+] Trying to detect architecture in "config_files/distros/ubuntu-bionic-generic.config"...
$ ./
bin/kconfig-hardened-check -c kconfig_hardened_check/config_files/distros/ubuntu-bionic-generic.config
[+] Trying to detect architecture in "
kconfig_hardened_check/
config_files/distros/ubuntu-bionic-generic.config"...
[+] Detected architecture: X86_64
[+] Trying to detect kernel version in "config_files/distros/ubuntu-bionic-generic.config"...
[+] Trying to detect kernel version in "
kconfig_hardened_check/
config_files/distros/ubuntu-bionic-generic.config"...
[+] Found version line: "# Linux/x86 5.3.0-28-generic Kernel Configuration"
[+] Detected kernel version: 5.3
[+] Checking "config_files/distros/ubuntu-bionic-generic.config" against X86_64 hardening preferences...
[+] Checking "
kconfig_hardened_check/
config_files/distros/ubuntu-bionic-generic.config" against X86_64 hardening preferences...
=========================================================================================================================
option name | desired val | decision | reason | check result
=========================================================================================================================
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment