Commit Graph

163 Commits

Author SHA1 Message Date
Frinzell, Aaron af4ea12204 Replace prints
Signed-off-by: Frinzell, Aaron <aaron.frinzell@intel.com>
2024-08-28 10:04:33 -07:00
Plato Mavropoulos 84fd880899 Fixes to scan_image module 2024-08-27 16:40:07 -07:00
Dan Scott f19760c63c Replace print() with logger.log()
Signed-off-by: Dan Scott <dan.scott@intel.com>
2024-08-05 16:35:54 -07:00
Nathaniel Mitchell 1d3574043e Add try/except block when copying BARs in rogue_mmio_bar tool
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2024-07-30 14:16:23 -07:00
Carles Pey 9f84abac9c smm_ptr: Add SMI contention check to the scan mode
Signed-off-by: Carles Pey <carles.pey@nccgroup.com>
2024-07-16 16:39:41 -07:00
jun2zhou 59f9144750 Add TE test download prompt (#2183)
* Add TE test Poe version Shell.efi download prompt

Signed-off-by: Jason Zhou <jun2.zhou@intel.com>

---------

Signed-off-by: Jason Zhou <jun2.zhou@intel.com>
Co-authored-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
Co-authored-by: dscott90 <dan.scott@intel.com>
2024-06-03 16:37:40 -07:00
Nathaniel Mitchell 27940020be Fix pcie_fuzz when trying to print devices
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2024-06-03 16:34:59 -07:00
Jason Zhou 976565e63d Remove bins from pub repo addessing the security scan warnning
Signed-off-by: Jason Zhou <jun2.zhou@intel.com>
2024-06-03 16:34:34 -07:00
Sae86 efccddd739 WIP: Add feature to automatically generate url for return codes
Signed-off-by: Sae86 <sara.batllori@intel.com>
2024-05-29 10:44:04 -07:00
Carles Pey 19e2553138 Add SMI enumeration mode to the smm_ptr module (#2141)
* Add SMI enumeration mode to the smm_ptr module

Signed-off-by: Carles Pey <carles.pey@nccgroup.com>
2024-05-29 10:19:42 -07:00
Sae86 2bc5b22216 Add feature to auto-generate/save return code IDs
Signed-off-by: Sae86 <sara.batllori@intel.com>
2024-04-22 16:36:02 -07:00
Sae86 7d728d987a Remove lines to set test result in is_supported in smm_code_chk and tools
Signed-off-by: Sae86 <sara.batllori@intel.com>
2024-04-02 16:40:45 -07:00
Dan Scott 0e8192cfd0 Move files to library folder 2024-03-22 14:26:59 -07:00
Dan Scott a933b1337d Update references to functions in new library files 2024-03-22 14:26:59 -07:00
Sae86 5f1b1d9743 Return code updates to scan_blocked, uefivar_fuzz and vmm.hypercallfuzz
Signed-off-by: Sae86 <sara.batllori@intel.com>
2024-02-12 16:38:07 -08:00
Sae86 cabe83d87f Return code updates to cet, reputation, s3script_modify and cpuid_fuzz
Signed-off-by: Sae86 <sara.batllori@intel.com>
2024-02-12 16:37:53 -08:00
brentholtsclaw 854ecfe0fd Add ability to parse padding section and raw section
change on line 276 from @platomav

Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2023-12-11 08:48:48 -08:00
Nathaniel Mitchell 4c4d8a94ca Fix BaseModule call in vmm modules
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2023-10-31 16:36:13 -07:00
Sae86 4a8057d904 Update remaining SKIPPED results and references
Signed-off-by: Sae86 <sara.batllori@intel.com>
2023-10-17 16:36:31 -07:00
Sae86 715dfbb678 Fix res being referenced before assignment issue
Signed-off-by: Sae86 <sara.batllori@intel.com>
2023-10-16 16:37:40 -07:00
Sae86 2358adfd51 Add module that generates test IDs for return codes
Signed-off-by: Sae86 <sara.batllori@intel.com>
2023-10-09 16:37:28 -07:00
Sae86 c0a488a7c0 Revert "Add return codes support to cpuid_fuzz, ept_finder and hypercallfuzz (tools/vmm)"
This reverts commit 041da2f54485aaf56018df3bfd9e2478190aa680.

Signed-off-by: Sae86 <sara.batllori@intel.com>
2023-09-29 09:01:13 -07:00
Sae86 a8530707e5 Add return codes support to cpuid_fuzz, ept_finder and hypercallfuzz (tools/vmm)
Signed-off-by: Sae86 <sara.batllori@intel.com>
2023-09-29 09:01:13 -07:00
Sae86 85a76f6475 Add return codes support to tools/vmm/hv
Signed-off-by: Sae86 <sara.batllori@intel.com>
2023-09-29 09:01:13 -07:00
Sae86 78834bd04b Add return codes support to cpuid_fuzz, ept_finder and hypercallfuzz (tools/vmm)
Signed-off-by: Sae86 <sara.batllori@intel.com>
2023-09-29 08:28:03 -07:00
Sae86 aaed42dde1 Add return codes support to cpuid_fuzz, ept_finder and hypercallfuzz (tools/vmm)
Signed-off-by: Sae86 <sara.batllori@intel.com>
2023-09-28 21:54:06 -07:00
Sae86 40e544a66f Add return codes support to vbox and xen folders in tools
Signed-off-by: Sae86 <sara.batllori@intel.com>
2023-09-28 21:24:41 -07:00
Sae86 6a32675590 Add return codes support to iofuzz, msr_fuzz, pcie_fuzz, pcie_overlap_fuzz (tools/vmm)
Signed-off-by: Sae86 <sara.batllori@intel.com>
2023-09-28 21:23:34 -07:00
Sae86 24bd626f7e Add return codes support to vmm.venom and wsmt in tools
Signed-off-by: Sae86 <sara.batllori@intel.com>
2023-09-28 21:23:18 -07:00
Nicolas Iooss 9a0f04e2a1 Import modules traceback and errno when they are needed
When loading the kernel module fails on Linux, `chipsec_util.py`
raises an error in

    logger().log_debug(traceback.format_exc())

because `traceback` was not imported.

Fix this issue by importing the missing modules `traceback` and `errno`.
While at it, import `traceback` too in other files where it was missing.

Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org>
2023-09-06 16:37:59 -07:00
Nathaniel Mitchell 89f4be530f Update sgx_check and vbox_crash_apicbase
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2023-08-15 16:39:01 -07:00
Dan Scott b3d974b51a Update modules and utils to match config parsing update
Signed-off-by: Dan Scott <dan.scott@intel.com>
2023-07-28 09:34:00 -07:00
Nicolas Iooss e8d41ab9ee Replace binascii.hexlify with bytes.hex
Python 3.5 introduced `bytes.hex` to represent bytes in hexadecimal:
https://docs.python.org/3.5/library/stdtypes.html#bytes.hex

This function directly returns a string, contrary to `binascii.hexlify`
which returns bytes. Using `binascii.hexlify` without transforming the
output to string actually produced buggy output. For example:

    $ ./chipsec_util.py spidesc spi_rom.bin
    ...
    + 0x0000 Reserved : 0xb'FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'

This `b'` is not desired. Using `bytes.hex` fixes this issue and makes
the code simpler.

Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org>
2023-06-05 16:43:15 -07:00
Nathaniel Mitchell 0016b0c14c Clean up oshelper
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2023-05-26 18:32:51 -07:00
nstarke 61fcd60637 Fixing broken 'intelsecurity.com' link with wayback link 2023-05-08 09:05:13 -07:00
Sara Batllori 25a50ac8cc f'string updates to vmm subfolders in tools
Signed-off-by: Sara Batllori <sara.batllori@intel.com>
2023-04-25 15:26:15 -07:00
Sara Batllori 31b7edb884 f'string updates to cpuid
Signed-off-by: Sara Batllori <sara.batllori@intel.com>
2023-04-25 08:32:10 -07:00
Sara Batllori a981fbbd1d f'string updates to msr_fuzz, pcie_fuzz and pcie_overlap_fuzz
Signed-off-by: Sara Batllori <sara.batllori@intel.com>
2023-04-25 08:31:53 -07:00
Sara Batllori 152a8c44ec f'string updates to vmm hv folder in tools
Signed-off-by: Sara Batllori <sara.batllori@intel.com>
2023-04-24 14:03:39 -07:00
Dan Scott 54a81b8a78 Add flush method, typehints, fstrings to common.py
Signed-off-by: Dan Scott <dan.scott@intel.com>
2023-04-20 10:26:48 -07:00
Sara Batllori 86ecd5f087 f-string updates for cpu, secureboot and smm folders in tools
Signed-off-by: Sara Batllori <sara.batllori@intel.com>
2023-04-12 09:09:58 -07:00
Sara Batllori 36ca280c8a f-string updates for uefi folder in tools
Signed-off-by: Sara Batllori <sara.batllori@intel.com>
2023-04-12 09:09:05 -07:00
brentholtsclaw 7af173a43c Module and command changes to work with hal
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2022-12-05 16:34:48 -08:00
Frinzell, Aaron c4f8aa95c2 Removed deprecated logger functions
Signed-off-by: Frinzell, Aaron <aaron.frinzell@intel.com>
2022-12-05 17:41:00 -06:00
Nathaniel Mitchell d6b78e24ac Add fw bleed vuln to scan_blocked tool
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2022-09-30 14:54:17 -07:00
Frinzell, Aaron a7ca74c120 Clean up py2 class object
Signed-off-by: Frinzell, Aaron <aaron.frinzell@intel.com>
2022-08-24 13:28:16 -07:00
Nathaniel Mitchell 291632c0ee Apply flake8 code formatting rules against repo
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2022-07-28 09:17:10 -07:00
Sara Batllori 89cc29a194 Improve skipped messaging
Signed-off-by: Sara Batllori <sara.batllori@intel.com>
2022-07-25 17:05:29 -07:00
Sara Batllori 344043b37d Remove sphinx warnings
Signed-off-by: Sara Batllori <sara.batllori@intel.com>
2022-07-25 17:05:19 -07:00
Frinzell, Aaron d7349fad14 Move wsmt.py to tools
Signed-off-by: Frinzell, Aaron <aaron.frinzell@intel.com>
2022-07-25 17:03:23 -07:00