57 Commits

Author SHA1 Message Date
brentholtsclaw f7fe1be074 More whitespace cleanup
E231, E201, E226

Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-07-31 13:46:13 -07:00
brentholtsclaw af7fa737ee Clean up indentation
E111

Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-07-01 16:35:07 -07:00
brentholtsclaw a00b2838e5 Cleanup trailing whitespace
W291,W293,W391

Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-07-01 15:44:21 -07:00
brentholtsclaw ec0b3167df Update Whitelist.py imports
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-06-30 11:12:45 -07:00
brentholtsclaw 12bb725351 Update copyright
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-04-17 09:23:07 -07:00
brentholtsclaw 9c47edabf7 Misc LGTM fixes
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-04-17 09:23:07 -07:00
BrentHoltsclaw 1b547bcaea Update ept-finder to current CHIPSEC version
Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2020-03-23 17:00:11 -07:00
Assaf Carlsbad 10bc5d1f2b Try to replace other bootloaders as well. 2020-02-28 15:48:18 -08:00
Assaf Carlsbad 6117d46b43 Add Shell.efi 2020-02-28 15:48:18 -08:00
Assaf Carlsbad 5e16e89765 Warn if boot loader can't be found on ESP. 2020-02-28 15:48:18 -08:00
Assaf Carlsbad 16bf089251 Tabs to spaces. 2020-02-28 15:48:18 -08:00
Assaf Carlsbad cd202f5ed0 Gracefully handle the case where 'virus_total_apis' is not installed. 2020-02-28 15:47:57 -08:00
Assaf Carlsbad ca1d27e046 Introduce a small tool to perform reputation checks on EFI modules based on the VirusTotal API. 2020-02-28 15:47:57 -08:00
BrentHoltsclaw e7b2c983ec Cleanup imports within modules directory
Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2020-01-23 15:07:44 -08:00
Assaf Carlsbad 666d075213 Always un-mount the ESP, even in the face of exceptions. 2020-01-21 14:44:13 -08:00
Assaf Carlsbad 017a1076a9 Build path to blacklist.json such that it will be valid when running the py2exe version. 2020-01-13 10:42:04 -08:00
BrentHoltsclaw f984ad68e4 fixup some lgtm_errors
Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2019-12-19 14:10:43 -08:00
BrentHoltsclaw 71bb8103b6 Update is_supported to not run if bootscript is not found
Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2019-12-05 15:51:13 -08:00
BrentHoltsclaw b38d1e02f0 Fix import error and cleanup imports for tools.secureboot.te
Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2019-09-24 12:23:01 -07:00
BrentHoltsclaw b1bfb491a7 Satisfy unittest errors
Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2019-09-24 12:22:28 -07:00
BrentHoltsclaw e7f23c76b6 Fixup lgtm module errors
Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2019-09-24 12:22:28 -07:00
BrentHoltsclaw eb7d40e23c Remove dumpstr from tools.secureboot.te
Function is unused and causing build/install errors within py2

Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2019-09-17 15:26:30 -07:00
BrentHoltsclaw 877ecb1ad8 Fixes to make uefivar_fuzz python3 compatible
Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2019-09-03 10:06:46 -07:00
BrentHoltsclaw 4ce1127743 Add cs_input to fix compatability issues with input/raw_input
Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2019-09-03 10:06:46 -07:00
BrentHoltsclaw 3827ec6b7e Fix setup.py install errors
Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2019-09-03 10:06:46 -07:00
BrentHoltsclaw 73485556d7 Cleanup bugs - Division compliant with python3
Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2019-08-16 14:19:02 -07:00
BrentHoltsclaw 18827a8574 Cleanup use is for None type compare
Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2019-08-16 14:18:47 -07:00
BrentHoltsclaw 2efeda4345 Merge python3-rc2 branch into master (#656) 2019-08-15 14:11:20 -07:00
nha 95b9d51273 using primitives for variable Name,Attribute,Data fields 2019-05-31 12:40:21 -07:00
Erik Bjorge 989db9f8b8 Updated messages in sinkhole tool
Some additional information was requested to make the failure/success cases more clear.

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>
2019-05-23 14:47:01 -07:00
BrentHoltsclaw 789314a142 Normalizing logging for various sections of chipsec:
HAL now only use logger().HAL
helpers now only use logger.DEBUG
modules now only use logger.VERBOSE
2019-04-25 14:19:08 -07:00
Nathaniel Mitchell 221e524c51 Added check to see if S3 Boot script was found
If the S3 boot script was not found, it will tell the user that instead of giving a false error.

Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2019-04-18 08:32:49 -07:00
Erik Bjorge 5d3541c005 Additional documentation fixes
- Remove warnings when processing doc strings
- Fix some formatting issues

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>
2019-03-05 17:25:06 -08:00
Erik Bjorge ed5e424d28 Cleaned up some of the module documenation.
Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>
2019-03-05 17:25:06 -08:00
Erik Bjorge 525a3fe7b3 Updated link to HackingTeam UEFI Rootkit
Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>
2018-10-29 13:30:31 -07:00
Erik Bjorge 1ea5ea3c04 Adding LoJax to UEFI module blacklist
More information about LoJax can be found at this link.
https://www.welivesecurity.com/2018/09/27/lojax-first-uefi-rootkit-found-wild-courtesy-sednit-group/

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>
2018-10-03 11:30:25 -07:00
Erik Bjorge 2a39c4bf43 Removed trailing white space 2018-07-26 14:35:01 -07:00
Michaelm396IN 5f4212f941 Remove white space 2018-07-26 14:35:01 -07:00
Michaelm396IN 405992e54c Removed unecessary codr 'print' 2018-07-26 14:35:01 -07:00
Michaelm396IN f23a4c1175 Created additonal bounds for _SIZE object. Removed additional white space 2018-07-26 14:35:01 -07:00
Michaelm396IN 6e504056fc update xrange to range for python3 support 2018-07-26 14:35:01 -07:00
Michaelm396IN 6fd2dbbb57 Remove bound method for singular BOUND object for string or integer value 2018-07-26 14:35:01 -07:00
Michaelm396IN 7b26638f54 Created a bounds to limit the amount of data being genereated by any given function. Fixes error handling with uefi_fuzzer (Additional Comments) 2018-07-26 14:35:01 -07:00
Michaelm396IN f3575ebfa2 Created a bounds to limit the amount of data being genereated by any given function. Fixes error handling with uefi_fuzzer 2018-07-26 14:35:01 -07:00
Michaelm396IN 872ea14545 Implement Bounds for _DATA variable 2018-07-26 14:35:01 -07:00
c7zero ab710a052a Removed Ntfs detection by ui_string
Removed Ntfs.efi detection by name (ui_string) to eliminate false
positives on firmware which has Ntfs.efi DXE driver.

Also, rkloader's and ntfs's GUIDs were swapped. Fixed.
2017-03-23 15:44:34 -07:00
c7zero f3832b45b0 New tools.smm.rogue_mmio_bar module (#168)
Experimental module to help finding vulnerabilities described in "BARing
the System: New vulnerabilities in Coreboot & UEFI based systems" talk
at RECon Brussels 2017

(http://www.intelsecurity.com/advanced-threat-research/content/data/REConBrussels2017_BARing_the_system.pdf)
2017-03-12 22:48:37 -07:00
c7zero 2fbb7a4eeb Simple EFI firmware white-listing module (#164)
tools.uefi.whitelist is a simple module for EFI firmware that allows modifications done to the firmware executables

The module can generate a list of EFI executables from (U)EFI firmware file or extracted from flash ROM, and then later check firmware image in flash ROM or file against this list of [expected/whitelisted] executables
2017-03-08 21:03:41 -08:00
CHIPSEC ad50429b44 Fixed logger bug 2017-03-07 16:40:11 -08:00
CHIPSEC e5cd522467 Added tools.uefi.uefivar_fuzz to test UEFI Variable firmware interface 2017-02-27 14:28:28 -08:00