Detecting a security bypass through binary code analysis
Abstract
Detecting a security bypass through binary code analysis is disclosed, including identifying one or more binary files of an authorized program; determining, based on a static code analysis of the one or more binary files, that the authorized program includes a potential security bypass, wherein the potential security bypass includes a modification of a system control block; and generating, in response to determining that the authorized program includes a potential security bypass, a security report.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 32 · Forward citations: 0.
Claims (20 — 3 Independent, 17 Dependent)
- Claim 1Independent Claim
A method for detecting a security bypass through binary code analysis, the method comprising: identifying one or more binary files of an authorized program; performing static code analysis of code of the one or more binary files without executing the authorized program, performing the static code analysis comprising: disassembling the code to obtain disassembled code, analyzing control block structures, base pointers, and offsets being referenced by instructions of the disassembled code, determining an address, of a security field of a system control block of an operating system, using one or more of the base pointers and one or more of the offsets, determining whether the instructions modify bits of the security field without using a security interface of the operating system; determining, based on performing the static code analysis, that the authorized program includes a potential security vulnerability when the bits of the security field are modified without using the security interface; generating, in response to determining that the authorized program includes the potential security vulnerability, a security report that identifies the potential security vulnerability; and causing an action to be performed based on the security report.
- Claim 2Depends on #1
The method of claim 1, wherein the operating system is Z/OS.
- Claim 3Depends on #2
The method of claim 2, wherein the authorized program is one of an AC(1) program, a supervisor call (SVC) routine, and a program call (PC) routine.
- Claim 4Depends on #2
The method of claim 2, wherein a modification of the system security setting includes a modification of a Z/OS system control block, wherein the security setting includes at least one of a privilege and an authorization.
- Claim 5Depends on #4
The method of claim 4, wherein the system control block is one of an accessor environment element (ACEE) and a job step control block (JSCB).
- Claim 6Depends on #4
The method of claim 4, wherein the static code analysis includes: identifying a system control block architecture of an operating system; and determining, based on the system control block architecture, whether one or more processor instructions modifies a particular system control block field.
- Claim 7Depends on #6
The method of claim 6, wherein the system control block architecture includes a control block chain defined by pointers and offsets.
- Claim 8Independent Claim
An apparatus for detecting a security bypass through binary code analysis, the apparatus comprising a computer processor, a computer memory operatively coupled to the computer processor, the computer memory having disposed therein computer program instructions that, when executed by the computer processor, cause the apparatus to carry out the steps of: identifying one or more binary files of an authorized program configured to execute on a computing system based on Z/Architecture; performing static code analysis of code of the one or more binary files without executing the authorized program, performing the static code analysis comprising: disassembling the code to obtain disassembled code, analyzing control block structures, base pointers, and offsets, determining an address, of a security field of a system control block of an operating system, using one or more of the base pointers and one or more of the offsets, to determine if specific bits are being set or cleared by the code, and determining whether the code modifies specific bits of the security field without using a security interface of the operating system; determining, based on performing the static code analysis, that the authorized program includes a potential security bypass when the specific bits of the security field are modified without using the security interface; generating, in response to determining that the authorized program includes the potential security bypass, a security report that identifies the potential security bypass; and causing an action to be performed based on the security report.
- Claim 9Depends on #8
The apparatus of claim 8, wherein the system control block is a Z/OS system control block.
- Claim 10Depends on #9
The apparatus of claim 9, wherein the system control block includes one or more security settings for at least one of a user, job, or environment, wherein a security setting includes at least one of a privilege and an authorization.
- Claim 11Depends on #10
The apparatus of claim 10, wherein the security interface is provided for changing the one or more security settings, and wherein the modification of the system control block bypasses the security interface.
- Claim 12Depends on #9
The apparatus of claim 9, wherein the system control block is one of an accessor environment element (ACEE) and a job step control block (JSCB).
- Claim 13Depends on #9
The apparatus of claim 9, wherein the system control block is a job step control block.
- Claim 14Depends on #8
The apparatus of claim 8, wherein the static code analysis includes: identifying a system control block architecture of an operating system; and determining, based on the system control block architecture, whether one or more processor instructions modifies a particular system control block field.
- Claim 15Depends on #14
The apparatus of claim 14, wherein the system control block architecture includes a control block chain defined by pointers and offsets.
- Claim 16Independent Claim
A computer program product for detecting a security bypass through binary code analysis, the computer program product disposed upon a computer readable storage medium, the computer program product comprising computer program instructions that, when executed, cause a computer to carry out the steps of: identifying one or more binary files of an authorized program; performing static code analysis of code of the one or more binary files without executing the authorized program, performing the static code analysis comprising: disassembling the code to analyze control block structures, base pointers, and offsets being referenced by instructions, of the code, to determine whether a security setting of an operating system is being modified by the instructions, determining an address, of a security field of a system control block of an operating system, using one or more of the base pointers and one or more of the offsets, determining whether the instructions modify bits of the security field without using a security interface of the operating system; determining, based on the static code analysis of the one or more binary files, that the authorized program includes a potential security bypass when the bits of the security field are modified without using the security interface; generating, in response to determining that the authorized program includes a potential security bypass, a security report that identifies the potential security bypass; and causing an action to be performed based on the security report.
- Claim 17Depends on #16
The computer program product of claim 16, wherein the system control block is a Z/OS system control block.
- Claim 18Depends on #17
The computer program product of claim 17, wherein the system control block includes one or more security settings for at least one of a user, job, or environment, wherein a security setting includes at least one of a privilege and an authorization.
- Claim 19Depends on #18
The computer program product of claim 18, wherein the security interface is provided for changing the one or more security settings, wherein the modification of the system control block bypasses the security interface, and wherein the security interface is a Resource Access Control Facility (RACF) in Z/OS.
- Claim 20Depends on #16
The computer program product of claim 16, wherein the static code analysis includes: identifying a system control block architecture of an operating system; and determining, based on the system control block architecture, whether one or more processor instructions modifies a particular system control block field.
Technical Overview & Description
BACKGROUND Field of the Disclosure The field of the disclosure is security testing, or, more specifically, methods, apparatus, and products for detecting a security bypass through binary code analysis. Description of Related Art The development of the EDVAC computer system of 1948 is often cited as the beginning of the computer era. Since that time, computer systems have evolved into extremely complicated devices. Today's computers are much more sophisticated than early systems such as the EDVAC. Computer systems typically include a combination of hardware and software components, application programs, operating systems, processors, buses, memory, input/output devices, and so on. As advances in semiconductor processing and computer architecture push the performance of the computer higher and higher, more sophisticated computer software has evolved to take advantage of the higher performance of the hardware, resulting in computer systems today that are much more powerful than just a few years ago. A secure computing platform presents a complex environment with many authorized interfaces and a large amount of authorized code. Authorized code or programs may be provided as part of the operating system or as part of specific products. Some authorized code may be provided by software vendors or created by customers. For security, platforms may use a fixed control block architecture where status information is maintained in system control blocks that can only be modified by authorized programs. Application programming interfaces (APIs) may be provided for changing these settings through the use of security services; however, programs with sufficient privilege levels can simply bypass the intended interfaces and set the bits directly, thus preventing the security products or services from fully controlling the settings for the system. While security bypasses of this nature may be made with good intentions, they compromise the system integrity of the system due to unintende
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (32)
Non-Patent Literature (5)
- No stated author; Detecting ACEE modifications; 2021; retrieved from the internet https://www.ibm.com/docs/en/zos/2.4.0?topic=guide-detecting-acee-modifications; pp. 1-5, as printed. (Year: 2021).
- No stated author; ACEE: Accessor Environment Element; 2021; retrieved from the Internet https://www.ibm.com/docs/en/zos/2.4.0?topic=areas-acee-accessor-environment-element; pp. 1-17, as printed. (Year: 2021).
- AYOUL3, GitHub
- —
- ayoul3/Privesc: Privilege escalation tools on Mainframe, URL: https://github.com/ayoul3/Privesc, GitHub, Inc., Sep. 10, 2018, retrieved: Feb. 20, 2023, 3 pages.