Course outlinetap to jump← Cybersecurity Fundamentals
Language
Systems, crypto & identity

Lesson 12 of 15 · ~22 min

Windows Fundamentals

Accounts, services, Event Viewer intro.

Windows Fundamentals

Windows fundamentals
Windows fundamentals

Course: Cybersecurity Fundamentals
Level: Beginner
Topic: Accounts, Event Viewer, Services, Updates, Defender, and PowerShell


1. Learning Objectives

By the end of this lesson, you will be able to:

  • Describe how Windows organizes local and domain accounts, groups, and built-in roles.
  • Use Event Viewer to interpret logon success (4624) and failure (4625) events.
  • Explain Windows services, how they start, and why rogue services matter.
  • Apply Windows Update and reboot discipline as a core control.
  • Understand Microsoft Defender basics and why disabling it is risky.
  • Run foundational PowerShell commands to inspect system state on authorized PCs.
  • Connect everyday user habits (lock screen, cautious .exe) to enterprise security outcomes.

2. Why Windows Dominates the Desktop

Microsoft Windows is the primary operating system for corporate laptops, many schools, and countless home PCs. Attackers follow users: phishing, malicious documents, ransomware, and credential theft often target Windows first.

Defenders must know Windows as well as Linux servers because identity, endpoints, and office productivity live here.

EnvironmentTypical Windows role
EnterpriseActive Directory, Group Policy, Entra ID (Azure AD) join
SMBLocal accounts + Microsoft 365
DeveloperWSL2 + Visual Studio + hybrid cloud tools
SOCEDR agents, Sysmon, centralized logging

3. Editions and Architecture (Brief)

Common editions:

EditionTypical use
HomePersonal PCs
ProSmall business, BitLocker, Hyper-V
Enterprise / EducationManaged corporate devices
ServerAD, file shares, RDS

Modern Windows uses the NT kernel, Registry for configuration, and NTFS (or ReFS) for most volumes. User Account Control (UAC) prompts when elevated actions are needed — do not disable UAC casually.

4. Accounts and Groups

4.1 Account types

TypeDescription
Local accountStored in SAM on the machine
Domain accountStored in Active Directory; logs on with domain prefix
Microsoft accountCloud identity tied to consumer services
Entra ID (Azure AD) accountCloud/work identity for M365 and device join

4.2 Built-in groups (awareness)

GroupRisk if misused
AdministratorsFull local control
Remote Desktop UsersCan RDP if allowed by policy
Backup OperatorsCan read many files for backup
GuestsShould stay disabled

Principle of least privilege: standard users for daily work; admin only when required.

4.3 Inspecting accounts (authorized PC)

GUI: lusrmgr.msc (local users and groups) on Pro/Enterprise.

PowerShell:

Get-LocalUser
Get-LocalGroup
Get-LocalGroupMember -Group "Administrators"
whoami /groups

Security hygiene:

  • Win+L locks the session — use it in open offices.
  • Do not run random .exe, .iso, or macro-enabled documents from chat apps.
  • Separate admin account from email-browsing account where policy allows.

5. Event Viewer and Security Logging

Event Viewer (eventvwr.msc) aggregates logs:

LogPurpose
ApplicationApp errors
SystemDrivers, services, kernel
SecurityLogons, policy changes (if auditing enabled)
SetupUpdates, upgrades
ForwardedEventsCentral collection in enterprises

SOC analysts hunt in Security and Sysmon (if deployed).

5.1 Event ID 4624 — Successful logon

4624 means an account successfully authenticated.

Key fields (names vary slightly by version):

FieldAnalyst use
Subject / Target UserWho logged on
Logon TypeInteractive, network, RDP, service, etc.
Source Network AddressRemote IP for network logons
Workstation NameCalling machine

Logon Type cheat sheet (common):

TypeMeaning
2Interactive (console)
3Network (SMB share, etc.)
10RemoteInteractive (RDP)
5Service

Many 4624 events at odd hours from foreign IPs may indicate stolen credentials — correlate with MFA and geolocation policies.

5.2 Event ID 4625 — Failed logon

4625 means authentication failed.

FieldAnalyst use
Failure ReasonBad password, locked account, etc.
Account NameTarget username
Source Network AddressOrigin of attempt

Repeated 4625 from one IP → password spraying or brute force. Repeated 4625 across many users from one IP → spray attack.

Other useful IDs (awareness):

IDMeaning
4634 / 4647Logoff
4672Special privileges assigned to new logon
4720User account created
4726User account deleted
4740Account locked out

5.3 Practice reading (fictional example)

Event ID: 4625
Account Name: jsmith
Failure Reason: Unknown user name or bad password
Source Network Address: 198.51.100.44
Logon Type: 3

Question: Is this local keyboard typing or remote? Answer: Type 3 suggests network authentication — investigate firewall, exposed SMB, or stolen VPN session.

6. Windows Services

A service is a background program, often starting at boot without a user logged in.

Services.msc or PowerShell:

Get-Service | Where-Object Status -eq 'Running' | Select-Object -First 20
Get-Service -Name WinDefend
Start typeBehavior
AutomaticStarts at boot
ManualStarts on demand
DisabledCannot start

Security notes:

  • Malware may install services named like system components — compare path in properties.
  • Over-privileged service accounts (domain admin as service logon) have caused domain-wide incidents.
  • Prefer Virtual Service Accounts, gMSA, or dedicated low-privilege accounts.

7. Windows Update and Patch Management

Unpatched Windows enabled WannaCry, NotPetya, and countless ransomware spreads via SMB and RDP flaws.

ControlAction
Enable updatesSettings → Windows Update
RebootMany patches need restart — deferral policies should be balanced, not infinite
WSUS / Intune / GPOEnterprise scheduling
FirmwareOEM tools for BIOS/UEFI where applicable

Lesson from WannaCry: Missing MS17-010 on reachable SMB allowed worm-like propagation inside networks.

Test patches in a pilot group before full rollout — but do not freeze updates for months.

8. Microsoft Defender Antivirus

Microsoft Defender (built into modern Windows) provides:

  • Real-time malware scanning
  • Cloud-delivered protection (when enabled)
  • Attack surface reduction rules (enterprise policies)
  • Integration with Defender for Endpoint in E5 scenarios
Get-MpComputerStatus
Update-MpSignature
Start-MpScan -ScanType QuickScan

Never disable Defender to “speed up Chrome” on corporate or banking PCs — attackers depend on blind endpoints.

Third-party AV may replace Defender; one active AV provider is expected.

9. PowerShell Basics for Defenders

PowerShell is the modern automation shell (.NET-based).

$PSVersionTable.PSVersion
Get-Process | Sort-Object CPU -Descending | Select-Object -First 10
Get-NetTCPConnection -State Listen | Select-Object LocalAddress,LocalPort,OwningProcess
Get-WinEvent -LogName Security -MaxEvents 5
Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Run
Cmdlet areaExample use
Get-ProcessSpot crypto miners
Get-NetTCPConnectionUnexpected listeners
Get-WinEventPull Security log slices
Get-AuthenticodeSignatureCheck if script is signed

Execution policy restricts script running — attackers bypass with -EncodedCommand; defenders monitor script block logging (enterprise).

Use PowerShell 7+ (pwsh) cross-platform where installed; many lessons still apply to Windows PowerShell 5.1 built into Windows.

10. Registry and Startup (Awareness)

Malware persists via:

  • Run / RunOnce registry keys
  • Scheduled tasks (taskschd.msc)
  • Services
  • WMI subscriptions (advanced)

Inspect startup (authorized):

Get-CimInstance Win32_StartupCommand | Select-Object Name, Command, Location

11. Remote Desktop and Network Posture

RDP (3389) is heavily attacked.

HardeningWhy
Strong passwords + MFAStolen creds are common
Network Level AuthenticationBlocks some unauthenticated paths
Restrict source IPs / VPN onlyShrinks attack surface
Avoid exposing RDP directly to internetUse gateway or Zero Trust

Event 4624 Logon Type 10 spikes may indicate RDP session activity — baseline what is normal.

12. Case Study: WannaCry / NotPetya

Ransomware worms exploited unpatched Windows and lateral movement techniques. Hospitals and shipping firms lost availability.

Takeaways: patch, segment networks, restrict SMB, maintain offline backups, limit admin tokens on daily-use accounts.

13. Case Study: Colonial Pipeline (Public Reporting Themes)

IT disruption on Windows-centric environments affected operational decisions. Ransomware groups target broad permissions and weak recovery.

Takeaways: endpoint detection, identity controls, segmented backups, incident response runbooks — not “security through obscurity.”

14. Case Study: Emotet and Office Document Tricks

Historical campaigns abused macros, ISO mounts, and social engineering in email.

Takeaways: disable unnecessary macros, train users, filter email, deploy EDR, apply ASR rules where feasible.

15. Practical Lab: Your Windows PC or Authorized VM

Objective: Inspect your own machine or a lab VM — not classmates’ or employer production without permission.

Part A — Accounts

  1. Run whoami /all and note your groups.
  2. List local administrators: Get-LocalGroupMember -Group Administrators.

Part B — Event Viewer

  1. Open Security log; filter 4624 and 4625 for the last 24 hours (if auditing produces events).
  2. Write one sentence explaining the most recent 4624 logon type.

Part C — Services and updates

  1. List five running services you recognize and one you do not — research the unknown name.
  2. Check Windows Update status; note last successful install date.

Part D — Defender

  1. Run Get-MpComputerStatus; record whether real-time protection is enabled.

Part E — PowerShell network

  1. Run Get-NetTCPConnection -State Listen and identify which process owns port 135 (if listening).

Do not disable security products for the lab. Do not export Security logs containing others’ PII to public forums.

16. Knowledge Check

Q1. Event ID 4625 typically indicates what?

A. Successful logon
B. Failed logon attempt
C. System shutdown
D. USB inserted

Q2. Which logon type commonly represents Remote Desktop?

A. 2
B. 3
C. 10
D. 8

Q3. Why should everyday users avoid running as local Administrator?

A. It speeds up games only
B. Malware inherits elevated privileges more easily
C. It disables the keyboard
D. It removes the need for passwords

Q4. What is the primary purpose of Windows Update in security?

A. Change wallpaper automatically
B. Deliver patches for OS and components
C. Delete user files
D. Disable firewalls

Q5. Which tool is the standard GUI for inspecting Windows logs?

A. Notepad only
B. Event Viewer
C. Paint
D. Calculator

Q6. What does Microsoft Defender provide on consumer Windows?

A. Antimalware and related protections
B. DNS registration
C. GPU overclocking
D. Email hosting

Q7. Which PowerShell cmdlet lists listening TCP connections?

A. Get-NetTCPConnection
B. Format-Volume
C. Add-Printer
D. Restart-Computer -Confirm:$false without care

Q8. What is a strong physical security habit on shared desks?

A. Share passwords on sticky notes
B. Win+L to lock the session
C. Leave RDP session open
D. Disable screen lock

Q9. Repeated 4625 events across many usernames from one IP may suggest:

A. Password spraying
B. Successful backup
C. Windows Update success
D. Monitor brightness change

Q10. Services that start automatically at boot are configured with start type:

A. Manual only
B. Automatic (or Automatic delayed)
C. Disabled always
D. Guest

Answer Key

  1. B
  2. C
  3. B
  4. B
  5. B
  6. A
  7. A
  8. B
  9. A
  10. B

17. Lesson Summary

Windows remains the primary desktop attack surface. You learned accounts and groups, how 4624/4625 events support detection, how services and updates maintain integrity, how Defender protects endpoints, and how PowerShell helps authorized inspection.

Remember: Lock your screen, patch promptly, keep Defender active, and read Security logs when investigating odd behavior on systems you manage.

18. Coming Next: Cryptography Basics

Next you will separate hashing from encryption, build intuition for TLS and HTTPS, and learn why password storage should use slow algorithms like bcrypt and Argon2 — not reversible “encryption” or fast hashes.


CYNARKS Academy – Learn to Understand. Practice to Defend.

Practice only on systems and networks you own or have explicit authorization to test.

End of lesson

Quiz · Tasks · Labs

Pass the quiz (≥70%), check off tasks, then mark the lesson complete to earn Foundations badges.

Scenario check

Real situations — apply the lesson logic; avoid pure memorization.

Answer all, then submit
  1. 1. Event ID 4625 typically indicates what?

  2. 2. Which logon type commonly represents Remote Desktop?

  3. 3. Why should everyday users avoid running as local Administrator?

  4. 4. What is the primary purpose of Windows Update in security?

  5. 5. Which tool is the standard GUI for inspecting Windows logs?

  6. 6. What does Microsoft Defender provide on consumer Windows?

  7. 7. Which PowerShell cmdlet lists listening TCP connections?

  8. 8. What is a strong physical security habit on shared desks?

  9. 9. Repeated 4625 events across many usernames from one IP may suggest:

  10. 10. Services that start automatically at boot are configured with start type:

Lesson tasks

Practice labs

Required labs test this lesson’s skills. Related labs are optional previews.

Finish the quiz and tasks to unlock Mark as completed.