Operator On The Wire
← Back to Knowledge Base
OOTW / Chapter I - Foundation / 01. Operating Systems

Introduction

An Operator must understand how systems actually function before attempting to manipulate them.

WindowsLinux
User ModeUser Space
Win32 APIglibc
ntdll.dllsyscall wrapper
System CallSystem Call
NT KernelLinux Kernel
DriverKernel Module
ServiceDaemon
SCMsystemd
SYSTEMroot
TokenUID/GID/Capabilities
RegistryConfiguration Files
ETWauditd/eBPF/journald
LSASSPAM/SSSD/OpenLDAP
Scheduled Taskcron/systemd timer

Introduction

"Every action performed on a computer eventually reaches the operating system."

The operating system (OS) is the layer between software and hardware.

Applications do not directly interact with the CPU, memory, disks, network cards, keyboards, or monitors.

Instead, applications request services from the operating system, which coordinates and controls access to system resources.


Core Responsibilities of an Operating System

An operating system performs several major responsibilities.

Resource Management

The operating system manages:

  • CPU time
  • Memory allocation
  • Storage access
  • Network communication
  • Peripheral devices

Without resource management:

  • Programs would interfere with each other
  • Memory corruption would be common
  • System stability would collapse

Process Management

The operating system controls:

  • Process creation
  • Process termination
  • Process scheduling
  • Process isolation
  • Process permissions

Understanding processes is therefore critical for:

  • Detection
  • Threat hunting
  • Malware analysis
  • Incident response
  • Privilege escalation

Memory Management

The operating system controls:

  • Memory allocation
  • Memory protection
  • Virtual memory
  • Memory isolation
  • Paging

Examples:

ScenarioOS Responsibility
Chrome requests memoryAllocate pages
Process crashesHandle exception
System runs out of RAMUse page file/swap
Malware injects codeMemory protections become relevant

Many offensive and defensive techniques revolve around memory.

Examples:

  • DLL injection
  • Process injection
  • Shellcode execution
  • Memory forensics
  • Credential extraction

File Management

The operating system controls:

  • Files
  • Directories
  • Ownership
  • Permissions
  • Metadata

Examples:

ActivityFile System Involvement
Save documentWrite file
Install softwareCreate files
Download malwareCreate file
Delete evidenceRemove file
PersistenceStore executable

Many investigations begin with file artifacts.


User Management

The operating system controls:

  • Users
  • Groups
  • Authentication
  • Authorization
  • Security boundaries

Examples:

UserAccess
AdministratorHigh
Standard UserLimited
Service AccountApplication-specific
SYSTEM / RootHighest

Many attacks revolve around:

  • Obtaining privileges
  • Escalating privileges
  • Impersonating users
  • Stealing credentials

Permission Management

Operating systems enforce security boundaries.

Examples:

ResourceControlled By
FilesPermissions
FoldersPermissions
RegistryPermissions
ServicesACLs
ProcessesSecurity tokens
Network resourcesAuthentication

Security fundamentally depends on permission enforcement.


Networking

The operating system provides:

  • TCP/IP stack
  • DNS resolution
  • Routing
  • Firewall integration
  • Socket management

Without operating systems:

  • Browsers cannot access websites
  • Servers cannot accept connections
  • Applications cannot communicate

Networking concepts later appear throughout:

  • Web
  • Active Directory
  • Cloud
  • Red Teaming
  • Blue Teaming

Logging and Telemetry

Operating systems record activity.

Examples:

PlatformTelemetry Source
WindowsEvent Logs
LinuxJournal
LinuxSyslog
WindowsETW
BothApplication Logs

These logs become evidence during:

  • Incident Response
  • Threat Hunting
  • Forensics
  • Detection Engineering

Common Operating System Components

Although implementations differ, most operating systems contain similar components.

ComponentPurpose
KernelCore operating system
File SystemData storage
Process ManagerExecution control
Memory ManagerMemory allocation
SchedulerCPU allocation
Network StackCommunications
Security SubsystemAuthentication and authorization
Logging SubsystemTelemetry generation
ShellUser interaction
Service ManagerBackground services

Windows vs Linux

The two dominant operating systems encountered by Operators are Windows and Linux.

Many concepts are shared.

ConceptWindowsLinux
FilesNTFSext4/xfs/btrfs
UsersLocal UsersLocal Users
GroupsLocal GroupsGroups
PrivilegesTokens & RightsRoot, Sudo, Capabilities
ServicesSCMsystemd
Scheduled ExecutionTask SchedulerCron / Timers
LogsEvent ViewerJournal / Syslog
ShellsCMD / PowerShellBash / Zsh
ConfigurationRegistryConfiguration Files
Highest PrivilegeSYSTEMRoot

Different implementations.

Same underlying concepts.


Operating Systems Through the Operator Lens

When entering a system, Operators typically ask:

Files

  • What files exist?
  • What directories exist?
  • What data is stored?

Users

  • Who uses this system?
  • Who has administrative rights?
  • What accounts exist?

Privileges

  • What permissions are available?
  • Can privileges be elevated?

Processes

  • What is running?
  • What executed recently?
  • What spawned what?

Services

  • What starts automatically?
  • What runs in the background?

Networking

  • What connections exist?
  • What systems communicate?

Telemetry

  • What evidence exists?
  • What happened?
  • When did it happen?

Notice that every question maps directly to an operating system component.

This is why operating systems serve as the foundation for everything that follows in OOTW.


What You Will Learn

The Windows and Linux sections will focus on:

Windows

  • File Systems
  • Users & Groups
  • Privileges & Integrity Levels
  • Processes
  • Networking
  • Services
  • Scheduled Tasks
  • Registry
  • Telemetry
  • Shells

Linux

  • File Systems
  • Important Locations
  • Users & Groups
  • Privileges
  • Networking
  • Services
  • Automated Tasks
  • Telemetry
  • Shells

By the end of this chapter, the student should be comfortable navigating both operating systems and understand how the major operating system components interact with one another.

Everything built later in OOTW depends on this foundation.