Certified Security by Design Using Higher Order Logic

Total Page:16

File Type:pdf, Size:1020Kb

Certified Security by Design Using Higher Order Logic Certified Security by Design Using Higher Order Logic1 Shiu-Kai Chin and Susan Older Department of Electrical Engineering and Computer Science Syracuse University, Syracuse, New York 13244 Fall 2018 Version 2.0 (August 2018) 1The development of this book was partially supported by the US National Science Foundation (Award #1245867). 2 VERSION 2.0 Copyright © 2018 by Shiu-Kai Chin All rights reserved. No part of this publication may be reproduced, stored, or transmitted in any form without permission of the author In memory of Lockwood Morris for his unwavering support To the engineers and computer scientists who design and deliver the systems on which we depend 4 VERSION 2.0 Contents Preface 15 I Introduction and Motivation 17 1 Introduction 19 1.1 What this book is about . 19 1.2 Our audience . 20 1.3 What computer engineers and scientists need to know . 21 1.4 Certified Security by Design . 22 1.4.1 Concepts of Operation . 22 1.4.2 A motivating example . 24 1.4.3 What you will learn . 25 II Lab Exercises: Introduction to ML 27 2 Getting Started with Linux, ML, and Emacs 29 2.1 Getting set up . 29 2.2 Looking around using Linux commands within a terminal . 30 2.3 Starting HOL and Evaluating ML Expressions . 31 2.4 Starting Emacs . 32 2.5 Exercises . 34 3 An Introduction to ML within HOL 37 3.1 Values and Types in ML . 38 3.2 Compound Values . 42 3.3 Value Declarations . 44 3.4 Exercises . 49 4 Functions in ML 51 4.1 Functions, Evaluation Rules, and Values . 51 4.2 Functions, Evalution Rules and Values in ML . 54 4.3 Naming Functions in ML . 55 4.4 Defining Functions Using Pattern Matching in ML . 57 4.5 Let Expressions in ML . 59 4.6 Exercises . 62 5 6 VERSION 2.0 5 Polymorphism and Higher-Order Functions in ML 63 5.1 Polymorphism . 64 5.2 Higher-Order Functions . 66 5.3 Exercises . 69 III Lab Exercises: Introduction to HOL 71 6 Introduction to HOL 73 6.1 HOL Terms . 73 6.1.1 Entering HOL terms and types . 73 6.2 Exercises . 75 7 Constructing and Deconstructing HOL Terms 77 7.1 Introduction to Constructing and Deconstructing HOL Terms . 77 7.2 Manipulating HOL terms . 79 7.3 Exercises . 82 8 Introduction to Forward Proofs in HOL 83 8.1 Structure of HOL Theorems . 83 8.2 Inference Rules in HOL . 85 8.3 Relating Proofs in HOL to Traditional Proofs . 86 8.4 Exercises . 89 9 Goal-Oriented Proofs 91 9.1 Goal-Oriented Proofs . 91 9.1.1 Basic Techniques . 91 9.1.2 Tactics . 92 9.2 Using Tactics and Tacticals . 94 9.2.1 Tactics . 94 9.2.2 Tacticals . 96 9.2.3 Working with Assumptions . 100 9.3 Using HOL within Emacs . 101 9.4 High-Level Proof Tactics . 106 9.5 Exercises . 107 10 Dealing with Assumptions in Goal-Oriented Proofs 109 10.1 Rewriting and Resolution . 109 10.2 Manipulating the Assumptions with PAT ASSUM . 112 10.3 More Examples . 114 10.4 Exercises . 126 11 Defining Theories, Types, and Functions in HOL 127 11.1 Defining New Theories in HOL . 127 11.2 Using Existing Theories and Types in HOL . 129 11.3 Adding New Definitions to HOL . 130 11.4 Proofs Using Structural Induction . 132 11.5 Defining New Types and Their Properties in HOL . 135 VERSION 2.0 7 11.6 Exercises . 141 12 Inductive Relations in HOL 143 12.1 Inductive Definitions in HOL . 143 12.2 Reasoning About Inductive Relations . 149 12.2.1 Even rules . 149 12.2.2 Odd rules . 152 12.2.3 not odd 0........................................ 152 12.2.4 not even 1 ....................................... 154 12.2.5 even not odd...................................... 155 12.2.6 odd not even...................................... 158 12.2.7 even theorem . 159 12.2.8 odd theorem . 162 12.2.9 not even lemma . 162 12.2.10 not odd lemma . 164 12.2.11 even odd theorem . 164 12.2.12 odd even theorem . 165 12.2.13 evenEven lemma . 165 12.2.14 oddOdd lemma . 167 12.2.15 Even even Odd odd lemma . 167 12.2.16 even is Even ...................................... 168 12.2.17 odd is Odd....................................... 169 12.2.18 even is EVEN ..................................... 169 12.2.19 Even is EVEN..................................... 175 12.2.20 odd is ODD ...................................... 175 12.2.21 Odd is ODD ...................................... 175 12.3 Exercises . 176 IV Lab Exercises: Access-Control Logic in HOL 179 13 An Access-Control Logic in HOL 181 13.1 Syntax . 181 13.2 Semantics . 182 13.3 Inference Rules . 183 13.4 Describing Access-Control Concepts in the C2 Calculus . 184 13.5 The Access-Control Logic in HOL . 186 13.6 Syntax of the Access-Control Logic in HOL . 187 13.7 Semantics of the Access-Control Logic in HOL . 188 13.8 C2 Inference Rules in HOL . 190 13.9 Using the Access Control Logic in HOL . 190 13.9.1 Specifying Directory Paths for HOL . 190 13.9.2 Documentation for the ACL Implementation in HOL . 191 13.9.3 The ACL ASSUM and CONTROLS Inference Rules . 193 13.9.4 Using the ACL ASSUM and Controls Inference Rules . 195 13.9.5 Goal-Oriented Access-Control Logic Proofs . 199 13.9.6 More.
Recommended publications
  • Secure App and Data Delivery
    White Paper Secure app and data delivery - across devices, networks, and locations How Citrix Virtual Apps dramatically simplifies data protection, access control, and other critical security tasks Citrix | Secure app and data delivery 2 Most discussions of application and Growing IT security challenges desktop virtualization focus on cost Corporate IT groups are continuously challenged to support critical new business initiatives and improve reduction, simplifying IT operations, and end user computing experiences, while facing limited increasing convenience for employees. budgets and mounting pressures to improve information These factors are extremely important, security. Many of these challenges involve making computing resources easier to utilize, regardless of but IT professionals should not overlook physical and geographical boundaries. Employees are the immense impact of workspace demanding the following: virtualization on information security. • Work anywhere, with a consistent experience, from In fact, application and desktop PCs, laptops, tablets and smartphone virtualization have profound advantages • Freedom from rigid IT security controls that restrict for key security functions such as performance and inhibit productivit data protection, access control, user • Access to corporate data and self-provision provisioning and compliance. They can applications on-demand also give administrators extremely Rethink Security granular control over how employees, Clearly these trends are not sustainable with current contractors and business partners use approaches to security and remote access. How can IT and share application data. groups provide easier access to resources, in the face of more sophisticated threats, with multiplying endpoints to defend? And the challenges are not just related to the quantity of end points, but to the increasing diversity.
    [Show full text]
  • Cybersecurity in a Digital Era.Pdf
    Digital McKinsey and Global Risk Practice Cybersecurity in a Digital Era June 2020 Introduction Even before the advent of a global pandemic, executive teams faced a challenging and dynamic environ- ment as they sought to protect their institutions from cyberattack, without degrading their ability to innovate and extract value from technology investments. CISOs and their partners in business and IT functions have had to think through how to protect increasingly valuable digital assets, how to assess threats related to an increasingly fraught geopolitical environment, how to meet increasingly stringent customer and regulatory expectations and how to navigate disruptions to existing cybersecurity models as companies adopt agile development and cloud computing. We believe there are five areas for CIOs, CISOs, CROs and other business leaders to address in particular: 1. Get a strategy in place that will activate the organization. Even more than in the past cybersecurity is a business issue – and cybersecurity effectiveness means action not only from the CISO organiza- tion, but also from application development, infrastructure, product development, customer care, finance, human resources, procurement and risk. A successful cybersecurity strategy supports the business, highlights the actions required from across the enterprise – and perhaps most importantly captures the imagination of the executive in how it can manage risk and also enable business innovation. 2. Create granular, analytic risk management capabilities. There will always be more vulnerabilities to address and more protections you can consider than you will have capacity to implement. Even companies with large and increasing cybersecurity budgets face constraints in how much change the organization can absorb.
    [Show full text]
  • The Six Dumbest Ideas in Computer Security Marcus J Ranum
    The Six Dumbest Ideas in Computer Security Marcus J Ranum http://www.ranum.com/security/computer_security/editorials/dumb/ There's lots of innovation going on in security - we're inundated with a steady stream of new stuff and it all sounds like it works just great. Every couple of months I'm invited to a new computer security conference, or I'm asked to write a foreword for a new computer security book. And, thanks to the fact that it's a topic of public concern and a "safe issue" for politicians, we can expect a flood of computer security-related legislation from lawmakers. So: computer security is definitely still a "hot topic." But why are we spending all this time and money and still having problems? Let me introduce you to the six dumbest ideas in computer security. What are they? They're the anti-good ideas. They're the braindamage that makes your $100,000 ASIC-based turbo-stateful packet-mulching firewall transparent to hackers. Where do anti-good ideas come from? They come from misguided attempts to do the impossible - which is another way of saying "trying to ignore reality." Frequently those misguided attempts are sincere efforts by well- meaning people or companies who just don't fully understand the situation, but other times it's just a bunch of savvy entrepreneurs with a well-marketed piece of junk they're selling to make a fast buck. In either case, these dumb ideas are the fundamental reason(s) why all that money you spend on information security is going to be wasted, unless you somehow manage to avoid them.
    [Show full text]
  • Secure by Design, Secure by Default: Requirements and Guidance
    Biometrics and Surveillance Camera Commissioner Secure by Design, Secure by Default Video Surveillance Products Introduction This guidance is for any organisation manufacturing Video Surveillance Systems (VSS), or manufacturing or assembling components intended to be utilised as part of a VSS. It is intended to layout the Biometrics and Surveillance Camera Commissioners (BSCC) minimum requirements to ensure such systems are designed and manufactured in a manner that assures they are Secure by Design. It also contains certain component requirements that will ensure a configuration that is Secure by Default when the component is shipped, thereby making it more likely that the system will be installed and left in a secure state. This guidance forms part of a wider suite of documentation being developed as part of the SCC Strategy, in support of the SCC Code of Practice. Background and Context The nature of the Internet means that connected devices can be subjected to a cyber attack from anywhere in the world. Widespread attacks on connected products is a current and real threat, and a number of highly publicised attacks have already occurred. The Mirai malware targeted devices such as internet-enabled cameras (IP cameras). Mirai was successful because it exploited the use of common default credentials (such as a username and password being set by the manufacturer as ‘admin’) and poor security configuration of devices. Ultimately, this facilitated attacks on a range of commercial and social media services and included an outage of streaming services such as Netflix. An evolution of Mirai, called Reaper, has also been discovered. Reaper used publicly and easily available exploits that remained unfixed (patched) and highlighted the problem around non patching of known security vulnerabilities, allowing attackers to utilise them to cause harm.
    [Show full text]
  • From Insider Threats to Business Processes That Are Secure-By-Design∗ Dieter Gollmann† Hamburg University of Technology Hamburg, Germany [email protected]
    From Insider Threats to Business Processes that are Secure-by-Design∗ Dieter Gollmanny Hamburg University of Technology Hamburg, Germany [email protected] Abstract We argue that insider threat is a placeholder term that accompanies the transition from securing IT infrastructures to securing the socio-technical systems made possible by these IT infrastructures. The term insider in its literal interpretation loses meaning in a context where there are no stable perime- ters one can refer to. Business practices such as outsourcing, employing temporary contractors, and the very use of IT, have removed security perimeters in the search for short-term efficiency gains, which may result in mid-term losses due to increased vulnerabilities. We conclude that securing socio-technical systems calls for the design of organisational (business) processes that remain viable once inside information about their implementation becomes available to potential attackers rather than for the deployment of secure IT infrastructures. Keywords: Insider threats, business process, IT security 1 Introduction Security is a fashion industry. Ever so often a new buzzword gets adopted that dresses up issues that had been around for a long time. Insider threats are an example in case. This term has entered discourses about security in recent years, reaching also into the research community, see e. g. [1, 2, 3]. However, the observation that threats to an organization can emanate from insiders is old news in IT security. Back in the early 1990s depending on whom you asked, 70%, 80%, or 90% of security incidents in commercial entities were due to insiders, where counts may have referred to the number of incidents or to the size of the damage.
    [Show full text]
  • Secure by Design White Paper
    WHITE PAPER Secure by Design: UniPrint Infinity’s Multi-Layer Approach to Cloud Printing Security © Process Fusion The moving of IT infrastructure up to the cloud usually results in companies being obliged to give up monitoring of their IT, with this being delegated to third-party vendors. Naturally, the thought of losing security controls over sensitive corporate data leads to decision-makers raising concerns surrounding the security of their files in the cloud! UniPrint Infinity’s innovative product empowers users with end-to-end cloud printing security. With its multi- layer approach, UniPrint Infinity secures your cloud printing architecture from all angles. This whitepaper will discuss the four key security features offered by UniPrint’s cloud printing solution. One Virtual Print Queue In today’s IT-driven enterprise world, user-friendliness, cost-savings, and enhanced security protection are paramount to the success of any organization! Enterprises must ensure that all their IT systems and related workflows incorporate all three of these features. Printing, over the course of time, has developed a reputation of being a source of pain for both enterprise employees and administrators. With complicated user interfaces, poor user experience, issues with driver misconfigurations, printer mapping errors, print data security concerns, and network maintenance costs, enterprise printing has been a nightmare for everyone involved. The advent of cloud printing has helped to solve some of these issues, with organizations moving their infrastructure to the cloud, effectively lowering costs and eliminating printer mapping and related misconfiguration issues. UniPrint Infinity’s Virtual Print Queue (VPQ) adds a whole new level of security to cloud printing! The implementation of UniPrint’s VPQ to your cloud printing environment means users printing from cloud environments such as Microsoft Azure send their print jobs to a single virtual print queue when they print from their workstations or mobile devices.
    [Show full text]
  • Proficy Webspace 6.0 from GE Digital
    Proficy Webspace Version 6.0 from GE Digital Deliver advanced control and visualization over iPad, Android, and a Web browser Increase operator agility and Extend your HMI/SCADA with the 01 power of the Industrial Internet effectiveness to improve business Proficy Webspace extends 100% of your iFIX and CIMPLICITY system Performance viewing and control abilities into a Web browser or tablet. A “zero- install” HTML5 client allows you to your applications from popular Web Proficy Webspace from GE Digital offers an easy-to-use, full-featured browsers on Windows, Mac, and Linux computers. For MAC OS X users, Web and mobile client that enables you to extend, expand, and enhance a dedicated app multi-monitor support, client sound, and Max OS X your new or existing iFIX or CIMPLICITY applications systems from GE Gatekeeper support Digital. It enables full control and visualization over your company Proficy Webspace doesn’t compromise your proven applications, Intranet or secure Internet without the need to change or alter your graphics, or functionality— providing a full-featured client and delivering software application and can be set up within minutes. comprehensive functionality over a browser. With Proficy Webspace, you can reduce costs, improve time to action, Increase information sharing with and expand analytic capability—driving sustainable advantages across 02 flexible, secure-by-design technology all levels of your business, including management, operators, With support for up to 70 simultaneous clients, Proficy Webspace engineering, and IT levels. enables new and existing systems to be dynamically expanded across the facility or globe. The solution enhances your user experience with Outcomes the ability to run multiple Webspace clients and view many systems from one point.
    [Show full text]
  • Secure by Design?
    SECURITY BY DESIGN by M. James Tanner A Thesis Presented in Partial Fulfillment of the Requirements for the Degree Master of Science University of Advancing Technology August 10, 2009 © M. James Tanner, 2009 SECURITY BY DESIGN by M. James Tanner has been approved August 10, 2009 APPROVED: VICTORIA SCHAUFUSS, PhD (ABD), Chair GREG MILES, PhD, CISSP, CISA, CISM, IAM, IEM, Independent Reviewer SHELLEY KEATING, MSIT, IEM, IAM, CCNA, MCSE+l, Network+, A+, CTT+, Independent Reviewer AL KELLY, MSIS, MCSA, MCSE 2000m /2003, IEM, IAM, Network+, A+, MCT, Independent Reviewer ACCEPTED AND SIGNED: __________________________________________ VICTORIA SCHAUFUSS, PhD (ABD) Abstract Securing a computer from unwanted intrusion requires astute planning and effort to effectively minimize the security invasions computers are plagued with today. While all of the efforts to secure a computer are needed, it seems that the underlying issue of what is being secured has been overlooked. The operating system is at the core of the security issue. Many applications and devices have been put into place to add layers of protection to an already weak operating system. Security did not used to be such a prominent issue because computers were not connected 24/7, they used dialup and did not experience the effects from connecting to multiple computers. Today computers connect to high speed Internet and seem useless without access to email, chat, Internet, and videos. This interconnectedness of computers has allowed the security of many computers to be compromised because they have not been programmatically secured. The core component of computer security might best be done through security layers protecting the operating system.
    [Show full text]
  • Building Secure and Reliable Systems
    Building Secure & Reliable Systems Best Practices for Designing, Implementing and Maintaining Systems Compliments of Heather Adkins, Betsy Beyer, Paul Blankinship, Piotr Lewandowski, Ana Oprea & Adam Stubblefi eld Praise for Building Secure and Reliable Systems It is very hard to get practical advice on how to build and operate trustworthy infrastructure at the scale of billions of users. This book is the first to really capture the knowledge of some of the best security and reliability teams in the world, and while very few companies will need to operate at Google’s scale many engineers and operators can benefit from some of the hard-earned lessons on securing wide-flung distributed systems. This book is full of useful insights from cover to cover, and each example and anecdote is heavy with authenticity and the wisdom that comes from experimenting, failing and measuring real outcomes at scale. It is a must for anybody looking to build their systems the correct way from day one. —Alex Stamos, Director of the Stanford Internet Observatory and former CISO of Facebook and Yahoo This book is a rare treat for industry veterans and novices alike: instead of teaching information security as a discipline of its own, the authors offer hard-wrought and richly illustrated advice for building software and operations that actually stood the test of time. In doing so, they make a compelling case for reliability, usability, and security going hand-in-hand as the entirely inseparable underpinnings of good system design. —Michał Zalewski, VP of Security Engineering at Snap, Inc. and author of The Tangled Web and Silence on the Wire This is the “real world” that researchers talk about in their papers.
    [Show full text]
  • Improving the Cyber Security of Consumer Internet of Things Report
    Secure by Design Report Secure by Design: Improving the cyber security of consumer Internet of Things Report Secure by Design Report Contents Foreword by the Minister for Digital and Creative Industries Executive Summary 1. The Internet of Things (IoT) - new opportunities and risks for consumers 2. Context of the Review 3. Promoting a Secure by Design Approach to Consumer IoT Security 4. Code of Practice for Industry on Consumer IoT 5. Supporting Actions by the Government and Industry 6. Building an International Consensus 7. Conclusion 8. Annex A: Glossary of Terms 9. Annex B: Options Analysis Summary 1 Secure by Design Report Foreword As we deliver our vision for the UK to be the safest place to live and do business online, it is critical that we make sure the internet works for everyone. That means, as Government and industry work together to ensure we protect the UK from cyber attacks, we must also reduce the burden on end users by embedding effective cyber security Margot James practices at every stage of a Minister for Digital and Creative Industries connected product’s life cycle. Increased connectivity via the internet of things (“IoT”) provides fantastic opportunities for the UK. A key part of this Government’s ambition is to expand on the aspirations set out in our Digital Strategy through enhancing our status as an international leader in the development and uptake of IoT. However, we must ensure that individuals are able to access and benefit from connected technologies safely, confident that adequate security and privacy measures are in place to protect their online activity.
    [Show full text]
  • Apple at Work Platform Security
    Apple at Work Platform Security Secure by design. At Apple, we care deeply about security—both for the user and for protecting corporate data. We’ve built advanced security into our products from the ground up, making them secure by design. And we’ve done this in a way that’s in balance with a great user experience, giving users the freedom to work the way they want. Only Apple can provide this comprehensive approach to security, because we create products with integrated hardware, software, and services. Hardware security Secure software requires a foundation of security built into hardware. That’s why Apple devices—running iOS, iPadOS, macOS, tvOS, or watchOS—have security capabilities designed into silicon. These include custom CPU capabilities that power system security features and silicon dedicated to security functions. The most critical component is the Secure Enclave coprocessor in modern iOS, iPadOS, watchOS, and tvOS devices and in all Mac computers with the Apple T2 Security Chip. The Secure Enclave provides the foundation for encrypting data at rest, secure boot in macOS, and biometrics. All modern iPhone, iPad, and Mac computers with a T2 chip include a dedicated AES hardware engine to power line-speed encryption as files are written or read. This ensures that Data Protection and FileVault protect users’ files without exposing long-lived encryption keys to the CPU or operating system. Secure boot of Apple devices ensures that the lowest levels of software aren’t tampered with and that only trusted operating system software from Apple loads at startup. In iOS and iPadOS devices, security begins in immutable code called the Boot ROM, which is laid down during chip fabrication and known as the hardware root of trust.
    [Show full text]
  • Integrating and Automating Security Into a Devsecops Model
    Integrating and automating security into a DevSecOps model Introduction In the era of digital transformation between teams, and drives agility. difficult and costlier to remediate. and disruption, the need to accelerate The primary cybersecurity goal of DevSecOps is about leveraging implementation of new and shifting DevSecOps is a reduction or elimination integrated automated controls by business requirements is driving the of manual controls-controls that have design. need for rapid platform and application historically had a significant impact on development. In response, software development teams due to issues with Amazon Web Services (AWS), a leading development, cybersecurity, and cycle time, false positives and inefficient, cloud provider, saw the need to address information technology (IT) operations voluminous output. These challenges DevSecOps automation on their platform have needed to find more efficient ways have also contributed to a more and continues to provide supporting of working together, known today as significant issue–the identification of services for DevSecOps such as CodeStar, “DevSecOps.” Rather than rebranding defects late in the development cycle CodeDeploy and many other tools. long-standing processes into new where it is far more buzzwords, the DevSecOps model demands a fundamentally new approach to address secure product development and deployment. Develop- When done effectively, a DevSecOps model creates a secure by design culture with secure development practices, promotes transparency of security vulnerabilities,
    [Show full text]