Skip to content

Latest commit

 

History

History
232 lines (221 loc) · 10.4 KB

15.sd_hashdb_on.md

File metadata and controls

232 lines (221 loc) · 10.4 KB

Command

python3 integrity_checker.py --directory=/bin --writedb --online

Output

Result codes reminders:
dot (.) / trustlevel=4                     	verified against online hash
star (*) / trustlevel=3                    	verified against local hash in the system
star (-) / trustlevel=2                    	verified against local hash in the hashdb
plus (+) / trustlevel=1                    	not verified, probably new or changed file
exclamation mark (!) / trustlevel=0        	verification failed, see integrity_checker.log for info/warning


START WORKING ON APT PACKAGES / FILES ------------------------------------

Entries read from /var/lib/dpkg/info:      	15555
Total files found in /bin	74
Number of new files in package /bin	74
..........................................................................
74 changes to hashdb.

STATISTICS ON APT PACKAGES / FILES ---------
Total number of files analyzed: 74
Number of files with trustlevel = 4 : 74
Number of files with trustlevel = 3 : 0
Number of files with trustlevel = 2 : 0
Number of files with trustlevel = 1 : 0
Number of files with trustlevel = 0 : 0
Checksum of hashdb after write: 55852b75cddc36ccdbd3b7913e597a0c

74 entries written to hashdb

Log file

2020-06-30 20:50:55,483:INFO:/bin/bash: trustlevel=4, package: bash
2020-06-30 20:50:55,574:INFO:/bin/bunzip2: trustlevel=4, package: bzip2
2020-06-30 20:50:55,580:INFO:/bin/bzcat: trustlevel=4, package: bzip2
2020-06-30 20:50:55,584:INFO:/bin/bzdiff: trustlevel=4, package: bzip2
2020-06-30 20:50:55,586:INFO:/bin/bzexe: trustlevel=4, package: bzip2
2020-06-30 20:50:55,590:INFO:/bin/bzgrep: trustlevel=4, package: bzip2
2020-06-30 20:50:55,592:INFO:/bin/bzip2: trustlevel=4, package: bzip2
2020-06-30 20:50:55,596:INFO:/bin/bzip2recover: trustlevel=4, package: bzip2
2020-06-30 20:50:55,598:INFO:/bin/bzmore: trustlevel=4, package: bzip2
2020-06-30 20:50:55,695:INFO:/bin/cat: trustlevel=4, package: coreutils
2020-06-30 20:50:55,697:INFO:/bin/chgrp: trustlevel=4, package: coreutils
2020-06-30 20:50:55,701:INFO:/bin/chmod: trustlevel=4, package: coreutils
2020-06-30 20:50:55,702:INFO:/bin/chown: trustlevel=4, package: coreutils
2020-06-30 20:50:55,706:INFO:/bin/cp: trustlevel=4, package: coreutils
2020-06-30 20:50:55,800:INFO:/bin/dash: trustlevel=4, package: dash
2020-06-30 20:50:55,804:INFO:/bin/date: trustlevel=4, package: coreutils
2020-06-30 20:50:55,805:INFO:/bin/dd: trustlevel=4, package: coreutils
2020-06-30 20:50:55,809:INFO:/bin/df: trustlevel=4, package: coreutils
2020-06-30 20:50:55,810:INFO:/bin/dir: trustlevel=4, package: coreutils
2020-06-30 20:50:55,935:INFO:/bin/dmesg: trustlevel=4, package: util-linux
2020-06-30 20:50:55,939:INFO:/bin/echo: trustlevel=4, package: coreutils
2020-06-30 20:50:56,034:INFO:/bin/egrep: trustlevel=4, package: grep
2020-06-30 20:50:56,041:INFO:/bin/false: trustlevel=4, package: coreutils
2020-06-30 20:50:56,046:INFO:/bin/fgrep: trustlevel=4, package: grep
2020-06-30 20:50:56,064:INFO:/bin/findmnt: trustlevel=4, package: util-linux
2020-06-30 20:50:56,072:INFO:/bin/grep: trustlevel=4, package: grep
2020-06-30 20:50:56,162:INFO:/bin/gunzip: trustlevel=4, package: gzip
2020-06-30 20:50:56,164:INFO:/bin/gzexe: trustlevel=4, package: gzip
2020-06-30 20:50:56,178:INFO:/bin/gzip: trustlevel=4, package: gzip
2020-06-30 20:50:56,271:INFO:/bin/hostname: trustlevel=4, package: hostname
2020-06-30 20:50:56,375:INFO:/bin/ip: trustlevel=4, package: iproute2
2020-06-30 20:50:56,378:INFO:/bin/ln: trustlevel=4, package: coreutils
2020-06-30 20:50:56,491:INFO:/bin/login: trustlevel=4, package: login
2020-06-30 20:50:56,494:INFO:/bin/ls: trustlevel=4, package: coreutils
2020-06-30 20:50:56,519:INFO:/bin/lsblk: trustlevel=4, package: util-linux
2020-06-30 20:50:56,522:INFO:/bin/mkdir: trustlevel=4, package: coreutils
2020-06-30 20:50:56,523:INFO:/bin/mknod: trustlevel=4, package: coreutils
2020-06-30 20:50:56,526:INFO:/bin/mktemp: trustlevel=4, package: coreutils
2020-06-30 20:50:56,547:INFO:/bin/more: trustlevel=4, package: util-linux
2020-06-30 20:50:56,664:INFO:/bin/mount: trustlevel=4, package: mount
2020-06-30 20:50:56,667:INFO:/bin/mountpoint: trustlevel=4, package: util-linux
2020-06-30 20:50:56,673:INFO:/bin/mv: trustlevel=4, package: coreutils
2020-06-30 20:50:56,771:INFO:/bin/ping: trustlevel=4, package: iputils-ping
2020-06-30 20:50:56,777:INFO:/bin/pwd: trustlevel=4, package: coreutils
2020-06-30 20:50:56,779:INFO:/bin/readlink: trustlevel=4, package: coreutils
2020-06-30 20:50:56,783:INFO:/bin/rm: trustlevel=4, package: coreutils
2020-06-30 20:50:56,785:INFO:/bin/rmdir: trustlevel=4, package: coreutils
2020-06-30 20:50:56,876:INFO:/bin/run-parts: trustlevel=4, package: debianutils
2020-06-30 20:50:56,990:INFO:/bin/sed: trustlevel=4, package: sed
2020-06-30 20:50:56,997:INFO:/bin/sleep: trustlevel=4, package: coreutils
2020-06-30 20:50:57,005:INFO:/bin/ss: trustlevel=4, package: iproute2
2020-06-30 20:50:57,008:INFO:/bin/stty: trustlevel=4, package: coreutils
2020-06-30 20:50:57,030:INFO:/bin/su: trustlevel=4, package: util-linux
2020-06-30 20:50:57,033:INFO:/bin/sync: trustlevel=4, package: coreutils
2020-06-30 20:50:57,149:INFO:/bin/tar: trustlevel=4, package: tar
2020-06-30 20:50:57,153:INFO:/bin/tempfile: trustlevel=4, package: debianutils
2020-06-30 20:50:57,156:INFO:/bin/touch: trustlevel=4, package: coreutils
2020-06-30 20:50:57,157:INFO:/bin/true: trustlevel=4, package: coreutils
2020-06-30 20:50:57,177:INFO:/bin/umount: trustlevel=4, package: mount
2020-06-30 20:50:57,181:INFO:/bin/uname: trustlevel=4, package: coreutils
2020-06-30 20:50:57,188:INFO:/bin/uncompress: trustlevel=4, package: gzip
2020-06-30 20:50:57,192:INFO:/bin/vdir: trustlevel=4, package: coreutils
2020-06-30 20:50:57,212:INFO:/bin/wdctl: trustlevel=4, package: util-linux
2020-06-30 20:50:57,216:INFO:/bin/which: trustlevel=4, package: debianutils
2020-06-30 20:50:57,223:INFO:/bin/zcat: trustlevel=4, package: gzip
2020-06-30 20:50:57,224:INFO:/bin/zcmp: trustlevel=4, package: gzip
2020-06-30 20:50:57,231:INFO:/bin/zdiff: trustlevel=4, package: gzip
2020-06-30 20:50:57,232:INFO:/bin/zegrep: trustlevel=4, package: gzip
2020-06-30 20:50:57,240:INFO:/bin/zfgrep: trustlevel=4, package: gzip
2020-06-30 20:50:57,242:INFO:/bin/zforce: trustlevel=4, package: gzip
2020-06-30 20:50:57,250:INFO:/bin/zgrep: trustlevel=4, package: gzip
2020-06-30 20:50:57,251:INFO:/bin/zless: trustlevel=4, package: gzip
2020-06-30 20:50:57,258:INFO:/bin/zmore: trustlevel=4, package: gzip
2020-06-30 20:50:57,260:INFO:/bin/znew: trustlevel=4, package: gzip

Hashdb

head -106 hashdb.json
[
 {
  "filename": "/bin/bash",
  "md5_hl": "4600132e6a7ae0d451566943a9e79736",
  "md5_info": "4600132e6a7ae0d451566943a9e79736",
  "md5_online": "4600132e6a7ae0d451566943a9e79736",
  "package": "bash",
  "uri": "http://deb.debian.org/debian/pool/main/b/bash/bash_5.0-4_amd64.deb"
 },
 {
  "filename": "/bin/bunzip2",
  "md5_hl": "8f2993088015f86d70e6ac8bc5187c02",
  "md5_info": "8f2993088015f86d70e6ac8bc5187c02",
  "md5_online": "8f2993088015f86d70e6ac8bc5187c02",
  "package": "bzip2",
  "uri": "http://deb.debian.org/debian/pool/main/b/bzip2/bzip2_1.0.6-9.2~deb10u1_amd64.deb"
 },
 {
  "filename": "/bin/bzcat",
  "md5_hl": "8f2993088015f86d70e6ac8bc5187c02",
  "md5_info": "8f2993088015f86d70e6ac8bc5187c02",
  "md5_online": "8f2993088015f86d70e6ac8bc5187c02",
  "package": "bzip2",
  "uri": "http://deb.debian.org/debian/pool/main/b/bzip2/bzip2_1.0.6-9.2~deb10u1_amd64.deb"
 },
 {
  "filename": "/bin/bzdiff",
  "md5_hl": "fae623b4d322b854f59ae2758e6c50b2",
  "md5_info": "fae623b4d322b854f59ae2758e6c50b2",
  "md5_online": "fae623b4d322b854f59ae2758e6c50b2",
  "package": "bzip2",
  "uri": "http://deb.debian.org/debian/pool/main/b/bzip2/bzip2_1.0.6-9.2~deb10u1_amd64.deb"
 },
 {
  "filename": "/bin/bzexe",
  "md5_hl": "10a5a0be2ad3f47fff12daaf1c0256c5",
  "md5_info": "10a5a0be2ad3f47fff12daaf1c0256c5",
  "md5_online": "10a5a0be2ad3f47fff12daaf1c0256c5",
  "package": "bzip2",
  "uri": "http://deb.debian.org/debian/pool/main/b/bzip2/bzip2_1.0.6-9.2~deb10u1_amd64.deb"
 },
 {
  "filename": "/bin/bzgrep",
  "md5_hl": "50ca8ce01a8178bf028b0bb84904a038",
  "md5_info": "50ca8ce01a8178bf028b0bb84904a038",
  "md5_online": "50ca8ce01a8178bf028b0bb84904a038",
  "package": "bzip2",
  "uri": "http://deb.debian.org/debian/pool/main/b/bzip2/bzip2_1.0.6-9.2~deb10u1_amd64.deb"
 },
 {
  "filename": "/bin/bzip2",
  "md5_hl": "8f2993088015f86d70e6ac8bc5187c02",
  "md5_info": "8f2993088015f86d70e6ac8bc5187c02",
  "md5_online": "8f2993088015f86d70e6ac8bc5187c02",
  "package": "bzip2",
  "uri": "http://deb.debian.org/debian/pool/main/b/bzip2/bzip2_1.0.6-9.2~deb10u1_amd64.deb"
 },
 {
  "filename": "/bin/bzip2recover",
  "md5_hl": "3e292ded44fff5ea3dfe384732f843ca",
  "md5_info": "3e292ded44fff5ea3dfe384732f843ca",
  "md5_online": "3e292ded44fff5ea3dfe384732f843ca",
  "package": "bzip2",
  "uri": "http://deb.debian.org/debian/pool/main/b/bzip2/bzip2_1.0.6-9.2~deb10u1_amd64.deb"
 },
 {
  "filename": "/bin/bzmore",
  "md5_hl": "e243255b6cf3b9403df53cb9cd6176e1",
  "md5_info": "e243255b6cf3b9403df53cb9cd6176e1",
  "md5_online": "e243255b6cf3b9403df53cb9cd6176e1",
  "package": "bzip2",
  "uri": "http://deb.debian.org/debian/pool/main/b/bzip2/bzip2_1.0.6-9.2~deb10u1_amd64.deb"
 },
 {
  "filename": "/bin/cat",
  "md5_hl": "44b8726219e0d2929e9150210bfbb544",
  "md5_info": "44b8726219e0d2929e9150210bfbb544",
  "md5_online": "44b8726219e0d2929e9150210bfbb544",
  "package": "coreutils",
  "uri": "http://deb.debian.org/debian/pool/main/c/coreutils/coreutils_8.30-3_amd64.deb"
 },
 {
  "filename": "/bin/chgrp",
  "md5_hl": "2befb2d66eee50af3fd5eb0b30102841",
  "md5_info": "2befb2d66eee50af3fd5eb0b30102841",
  "md5_online": "2befb2d66eee50af3fd5eb0b30102841",
  "package": "coreutils",
  "uri": "http://deb.debian.org/debian/pool/main/c/coreutils/coreutils_8.30-3_amd64.deb"
 },
 {
  "filename": "/bin/chmod",
  "md5_hl": "737ae4345da6e93c44fe9b11b12defe1",
  "md5_info": "737ae4345da6e93c44fe9b11b12defe1",
  "md5_online": "737ae4345da6e93c44fe9b11b12defe1",
  "package": "coreutils",
  "uri": "http://deb.debian.org/debian/pool/main/c/coreutils/coreutils_8.30-3_amd64.deb"
 },
 {
  "filename": "/bin/chown",
  "md5_hl": "8680c8e619194af847c009a97fd4ebe2",
  "md5_info": "8680c8e619194af847c009a97fd4ebe2",
  "md5_online": "8680c8e619194af847c009a97fd4ebe2",
  "package": "coreutils",
  "uri": "http://deb.debian.org/debian/pool/main/c/coreutils/coreutils_8.30-3_amd64.deb"
 },
 {