Docsity

Security+ Cheat Sheet, Exams of Auditing

Toggle sidebar
bg1
Security+ Cheat Sheet
Chapter 1: Introduction to Security
CIA : Confidentiality, Integrity, Availability
- Confidentiality : Prevents disclosure of information to outside party
- Integrity : Guarantees data has not been tampered with
- Availability : Resources can be accessed when needed
AAA : Authentication, Authorization, Accounting(non-repudiation)
- Authentication : Confirms one’s identity
e.g.) username/password, biometrics, signature etc
- Authorization : Allows one to access certain materials
e.g.) ACL(Access Control Lists), Linux permission bits etc
- Accounting : Tracking of data/comp./netwrk resources usage for individuals
e.g.) Logging, auditing, data/network monitoring
Types of Threats
- Malicious Software
- Unauthorized Access
- System Failure
- Social Engineering
Physical, Technical, Administrative Security plans
- Physical : Physical security systems such as alarms, ID cards, CCTV etc
- Technical : Smart cards, ACLs, encryption etc
- Administrative : Policies, procedures, DRP(Disaster recovery plan) etc
Protection Methods
- User Awareness
- Authentication
- Anti-malware
- Data Backups
- Encryption
- Data Removal
*Good security plan + Good protection method = Solid defense (Defense in depth)
Types of Hackers
- White Hat
- Black Hat
- Grey Hat
- Blue Hat (Bounty Hunters)
- Elites (Zero day discoverers)
Types of Attackers
- Script Kiddie
- Hacktivist
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c

Partial preview of the text

Download Security+ Cheat Sheet and more Exams Auditing in PDF only on Docsity!

Security+ Cheat Sheet

Chapter 1: Introduction to Security

CIA : Confidentiality, Integrity, Availability

  • Confidentiality : Prevents disclosure of information to outside party
  • Integrity : Guarantees data has not been tampered with
  • Availability : Resources can be accessed when needed AAA : Authentication, Authorization, Accounting(non-repudiation)
  • Authentication : Confirms one’s identity e.g.) username/password, biometrics, signature etc
  • Authorization : Allows one to access certain materials e.g.) ACL(Access Control Lists), Linux permission bits etc
  • Accounting : Tracking of data/comp./netwrk resources usage for individuals e.g.) Logging, auditing, data/network monitoring Types of Threats
  • Malicious Software
  • Unauthorized Access
  • System Failure
  • Social Engineering Physical, Technical, Administrative Security plans
  • Physical : Physical security systems such as alarms, ID cards, CCTV etc
  • Technical : Smart cards, ACLs, encryption etc
  • Administrative : Policies, procedures, DRP(Disaster recovery plan) etc Protection Methods
  • User Awareness
  • Authentication
  • Anti-malware
  • Data Backups
  • Encryption
  • Data Removal *Good security plan + Good protection method = Solid defense (Defense in depth) Types of Hackers
  • White Hat
  • Black Hat
  • Grey Hat
  • Blue Hat (Bounty Hunters)
  • Elites (Zero day discoverers) Types of Attackers
  • Script Kiddie
  • Hacktivist
  • Organized Crime
  • APT(Advanced Persistent Threat aka Nation state attacker)
  • Exploit kit
  • Botnets and Zombies

    Also used for DDOS or financial gain

  • Active Interception (MITM)
  • Privilege Escalation
  • Backdoor

    Authentication bypass mechanisms built into the program itself

  • Logic Bombs

    Triggers malware on certain condition(date, OS type etc) Malware Prevention / Troubleshooting Common Symptoms : Slow computer speed, crashes, incorrect home page, popups Common Prevention Antivirus : Regular updates and scans Detects : worms, viruses and Trojans Does not detect : Botnet activity, rootkits, logic bombs Firewalls and Regular OS updates Separation of OS and data Hardware + Software based firewall (e.g. router + Windows Firewall) Encryption for confidentiality (Windows EFS) Common Steps to Malware Removal

  1. Identify Symptoms
  2. Quarantine infected system / drive to clean machine
  3. Disable System Restore
  4. Remediate affected system

Update AV / Scan and removal

  1. Schedule scans and run update
  2. Enable system restore and set new restore point
  3. Educate end user Worms and Trojans

Antivirus, Regular maintenance and vigilance Spyware Antivirus, browser security settings, remove unnecessary application End user education Rootkits Antivirus, Rootkit detectors (USB bootable OS) Use UEFI over BIOS (GPT over MBR) Wipe the entire drive & reinstall OS Spam Spam filter, whitelisting/blacklisting, close open mail relays

  • Configure BIOS Boot order
  • Secure boot (disables unsigned device drivers, UEFI)
  • UEFI and Root of Trust, secure/measured boot, attestation Securing Storage Devices
  • Removable Storage

Typically prohibits all removable storage besides specific ones Removable Media Controls USB Lockdown (BIOS), limit USB use, malware scans, audits

  • NAS (Network Attached Storage)

Built for high availability (no downtime) Commonly implemented as RAID array (levels depend on situation) Use encryption, authentication, secure logging etc

  • Whole Disk Encryption

Requires either self encrypting or full disk encryption SW Windows BitLocker requirements

  1. TPM or External USB key with encrypted keys
  2. Hard drive with 2 volumes(1 for boot, 1 to be encrypted)

Double Encryption – BitLocker + EFS

  • HSM (Hardware Security Modules) Vs TPM TPM handles key storage with limited cryptographic function HSM handles mainly quick crypto functions with key storage Found in USB attachment or network attached device Securing Wireless Peripherals
  • Force devices to use AES or WPA2 encryption for data transmission Securing Mobile Devices General Security
  • Keep phone number secure and do not respond to unsolicited calls
  • Update mobile device OS
  • Complex password and limit downloads to device Malware
  • Install & update mobile device AV
  • Take use of built in security features
  • Avoid following links, don’t store information on device
  • Don’t post info on social media Botnet Activity
  • Follow anti-malware procedures
  • Avoid rooting / jailbreaking phones SIM Cloning
  • A cloned SIM redirects all calls and texts to its own device
  • Able to hijack messages intended for original SIM card owner Wireless Attacks
  • Bluejacking
  • Bluesnarfing Theft
  • Full device encryption(FDE)
  • Set up GPS tracking
  • Remote lock & Remote wipe technology Mobile Application
  • Mobile key management : use Third party software (Verisign)
  • Application whitelisting / blacklisting
  • Strong SMS application and endpoint security
  • Mobile payment : avoid public networks, user education
  • Geotagging : Disable GPS depending on situation
  • BYOD concerns

Storage Segmentation : divide corporate vs private data storage Mobile Device Management systems for corporations

Group Policies, Security Templates, Configuration Baselines Group Policy : Used in Windows to set group configurations

  • gpedit.msc Hardening File Systems and Hard Drives a) Use a secure file system

NTFS for Windows, allows encryption, ACLs, logging Use chkdsk and convert commands ext4 for Linux Use fdisk –l or df –T b) Hide important files (System files, personal etc) c) Manage hard drives Delete temp files Periodically verify system files integrity Defrag hard drives Backup data Restore points Whole disk encryption Separate OS system and personal data Virtualization Virtualization : Creation of virtual machines housed in an OS VM(Virtual Machines) and VDE(Virtual Desktop Environment)

  • Pros

    Flexible and portable Safe testing of malware in a controlled environment

  • Cons

    Resource intensive Vulnerable to hardware failures VM Categories

  1. System virtual machine : Runs an entire OS
  2. Process virtual machine : Runs a single application (browser)
  • Virtualization ↔ Emulation ↔ Simulation
  • Virtual Appliance ↔ Image ↔ Virtual Machine Other forms of virtualization

VPN (Virtual Private Network) VDI (Virtual Desktop Infrastructure) VLAN (Virtual Local Area Network) Hypervisor (Virtual Machine Manager)

  • Allows multiple virtual OS to run concurrently Type 1 vs Type 2 Hypervisor
    • Type 1 - Native

      Runs directly on host hardware Flexible and efficient Strict hardware/software restrictions, less common - Type 2 – Hosted > One level removed from host hardware > More available to most OS and hardware > Resource intensive Application Containerization - Runs distributed applications w/o running an entire VM - Efficient but less secure Securing Virtual Machines Generally equivalent to securing regular OS, but with little more work

  1. Update virtual machine software (e.g. VirtualBox)
  2. Be wary of VM-VM and VM-host network connections
  3. Protect NAS and SAN from virtual hosts
  4. Disable unnecessary USB and external ports on VMs
  5. Alter boot priority for virtual BIOS
  6. Limit and monitor VM resource usage to prevent DOS attacks
  7. Protect raw virtual machine image

Snapshots, Encryption, Access permission and signatures Virtualization Sprawl : When there are too many VMs to manage at once Employ a VMLM (Virtual Machine Lifecycle Management) tool

Most IE plugins made with vulnerable ActiveX Advanced Browser Security Browser temp files – configure to automatically flush Disable saved passwords Configure a minimum version limit on TLS/SSL Disable all 3rd party plugins Consider using a VPN or virtual machine for extra separation Securing Other Applications Principle of Least Functionality – don’t give tools users don’t need User Account Control (Windows)

  • Keeps everyone on regular user level of access by default
  • Prompts required to access any admin right required things Create Policies (Prioritize app. Whitelisting over blacklisting) Securing common Windows programs
  1. Outlook

Install latest update, upgrade to newer version of Office Use email whitelisting to remove junk email Read email in text format instead of HTML Enable attachment blocking Use encryption - SPA (Secure Password Authentication), PGP, SSL

  1. Word

Using passwords for opening/modifying documents Read only settings Digital certificates

  1. Excel

Password protected worksheets, no macro Excel encryption Mobile Applications

  • Disable GPS
  • Configure strong passwords Server Applications
  • e.g. FTP, Email, Web, SQL database
  • Change default username / passwords
  • Don’t consolidate multiple services into single machine Secure Programming SDLC (Software Development Life Cycle)
  • Waterfall

Traditional method Requirements are decided before development

  • Agile

RAD (Rapid Application Development) approach Relatively new, Breaks development down to incremental changes Requires high dedication from members

  • DevOps

Deployment tool, often used together with Agile method Core SDLC and DevOps Principles

  • Preserving CIA of software development
  • Secure code review

In depth code review for security bugs Included before fuzzing or penetration testing

  • Threat Modeling

Identifying and prioritizing potential threats

  • Common Security Principles
  1. Least Privilege
  2. Defense in Depth
  3. Never trust user input
  4. Minimizing attack surface
  5. Secure defaults

Shellcode injections Strong input validation, fuzz testing

  1. XSS / XSRF

    Common browser based attacks, uses HTML code injection

  2. Other Code injections

    SQL Injection LDAP Injection XML Injection

  3. Directory Traversal
  4. Zero Days

Chapter 6 : Network Design Elements

Network Design OSI Model

  • Goals
    1. Explain network connection between hosts on LAN/WAN
    2. Present a categorization system for communication protocols
    3. Shows how different protocol suits communicate
  • Overview Layer Name Usage Units 1 Physical Physical and Electrical medium Bits 2 Data link Establishes, maintains and decides how data transfer is accomplished over the physical layer Frames 3 Network Routing and Switching Packets 4 Transport Manages/ensures error free transmission between hosts through logical addressing/port assignment Segments(TCP) Datagrams(UDP) 5 Session Establishment, termination and synchronization of sessions within the OS over the network and between hosts Messages 6 Presentation Sender to receiver data translation, Code conversion, data compression and file encryption Messages 7 Application FTP, HTTP and SMTP end user protocols Messages Network Devices
  • Switch

Central connection device, replaces hubs and bridges Translates MAC and MAC+IP into physical ports to route messages Attacks

  1. MAC Flooding : Uses up the CAM to force switch into broadcast
  2. MAC Spoofing : Masks network adapter MAC with different value
  3. Physical Tampering : Vulnerable management ports, Looping
  • Use hierarchial router structure or spanning tree

By default attempts to automatically connect to other IPv6 addresses Make sure to secure both IPv4 and IPv Network Zones and Interconnections

  • LAN (Local Area Network)

    Group of interconnected computers contained in a small space Usually uses private IPs behind a firewall By default does not have internet access, but may connect to an Internet proxy to do so

  • WAN (Wide Area Network)

    Network of two or more interconnected LANS Covers a larger geographical area Requires telecomm/datacomm service company

  • Internet

    Worldwide interconnected network Must secure all transmission that happens over the internet

  • DMZ (Demilitarized Zone)

    Special subnetwork designed for external client access Common web/FTP/email/database etc services reside in DMZ Can also be accessed by LAN clients Often placed in a separate LAN network from the rest of system Common 3-leg perimeter configuration

  • Intranets & Extranets

    Used to share company data securely through the internet One company = intranet, multiple companies involved = extranet Never store confidential+ data in these networks Crucial to properly implement firewall NAC (Network Access Control)

  • Denies network access until client obtains proper security measures
  • Antivirus, system updates etc
  • Preinstalled clientside software (agent) or remote scan (agentless)
  • Persistent vs Dissolvable agents

    Persistent : Designed for multiple use Dissolvable : Designed for one time authentication

  • Agentless offers less control for more flexibility
  • Cisco offers hardware solutions Subnetting
  • Process of creating logical subnetworks through IP manipulation
  • Benefits
  1. Compartmentalizes network, increasing security
  2. Efficient use of IP address
  3. Reduces IP collision and broadcast signals
  • Overview
  1. Class A : Large network, 255.0.0.
  2. Class B : Medium network, 255.255.0.
  3. Class C : Small network, 255.255.255. Example : 192.168.1.0/28 28 is total number of bits used Class C Network 255.255.255.240 1111 1111. 1111 1111. 1111 1111. 1111 0000 First 3 octets are Class C mask First 4 bits of last octet is subnet mask, 2^4 = 16 subnets Last 4 bits of last octet is host ID, 2^4-2 = 14 hosts VLAN(Virtual LAN)
  • Segments various networks sharing the same switch, reduce collision, Organize network, boost performance and security
  • Works on Layer 2 (Data link frames)
  • Allows admins to group hosts connected on different switches together
  • VLAN Hopping : Methods of gaining access to other VLANs on switch
  1. Switch Spoofing
  2. Double Tagging Telephony