Starting Priorities and the Systems-Programming Direction
Faced with sixteen courses and a field that keeps growing, the most common beginner question is "where do I start?". The roadmap behind this track answers it with an ordered list of eight priorities, and then names one longer-term direction it calls particularly strong for people who like systems programming and networking. This lesson maps both onto the track, checks that the order is consistent with the courses' prerequisites, and shows the kind of code the systems direction is about.
The eight priorities
| # | Priority | In the track | Why it comes here |
|---|---|---|---|
| 1 | Linux system administration | Linux & Bash, Linux Server Administration, Security Foundations' OS internals and lab | every tool, lab and server in the field runs on it |
| 2 | TCP/IP networking and protocols | Networking for Security | every attack and every detection crosses a network |
| 3 | Python, C/C++ and Bash for security | Programming for Security | you automate, parse and read code from now on |
| 4 | Cryptography and security fundamentals | Applied Cryptography, Core Concepts | the vocabulary of risk and the tools of confidentiality and integrity |
| 5 | Web application architecture and security | Web Application Security | the largest attack surface most organisations have |
| 6 | Network and application security assessment | Network Security | inventory, configuration review and scanning, done safely |
| 7 | Penetration testing methodology | Penetration Testing | scope, method and the report, built on everything above |
| 8 | Choose a specialisation | one of the six paths | depth after breadth |
This is the same order as the first eight months of the study plan, compressed into a list. It is also consistent with the prerequisites the courses declare, which a few lines of Python can check: no priority should need a course that a later priority teaches.
PREREQS = { # inside the track only
"sec-networking": ["sec-foundations"], "sec-programming": ["sec-foundations"],
"sec-cryptography": ["sec-foundations"], "sec-web-security": ["sec-networking"],
"sec-network-defense": ["sec-networking"], "sec-pentest": ["sec-web-security", "sec-network-defense"],
}
PRIORITIES = [ # the roadmap's starting priorities, mapped to the track
("Linux system administration", ["sec-foundations"]), # + linux, linux-admin outside the track
("TCP/IP and network protocols", ["sec-networking"]),
("Python, C/C++ and Bash", ["sec-programming"]),
("Cryptography and security fundamentals", ["sec-cryptography"]),
("Web architecture and security", ["sec-web-security"]),
("Network and application assessment", ["sec-network-defense"]),
("Penetration testing methodology", ["sec-pentest"]),
]
def check(order):
rank = {c: i for i, (_, courses) in enumerate(order) for c in courses}
problems = [f"'{order[rank[c]][0]}' needs {p} from '{order[rank[p]][0]}'"
for c, ps in PREREQS.items() for p in ps if rank[p] > rank[c]]
return problems or ["consistent with every prerequisite"]
print("roadmap order:")
for line in check(PRIORITIES):
print(" " + line)
swapped = PRIORITIES[:4] + [PRIORITIES[6], PRIORITIES[5], PRIORITIES[4]] # "pentest first"
print("pentest before web and network assessment:")
for line in check(swapped):
print(" " + line)roadmap order:
consistent with every prerequisite
pentest before web and network assessment:
'Penetration testing methodology' needs sec-web-security from 'Web architecture and security'
'Penetration testing methodology' needs sec-network-defense from 'Network and application assessment'
The roadmap's order passes. The popular shortcut "start with penetration testing, learn the rest as you go" fails twice: the methodology course assumes the web and network-assessment courses. Not because a rule says so, but because a test plan full of SQL injection, service enumeration and CVSS scores is unreadable without them.
The strong technical direction
For someone who enjoys systems programming and networking, the roadmap suggests a longer path that goes beyond running standard penetration-testing tools, toward low-level security engineering and vulnerability research:
| Step | In the track and around it |
|---|---|
| C and C++ systems programming | C, C++, reading C for memory bugs |
| Linux and Windows internals | Operating Systems, OS internals, Windows internals for defenders |
| TCP/IP and application protocol security | Networking for Security, protocol parsing in Python |
| Reverse engineering | Reverse Engineering |
| Binary analysis | static and dynamic analysis |
| Memory safety and vulnerability research | Memory Safety, Security Research |
| Fuzzing and secure software development | sanitizers and fuzzing in CI, safe C, Rust's unsafe and FFI |
It is the path of school 4 and 6 from the career lesson, and it is slow: each step is a course or more, and the steps build on each other. What it gives you is the ability to answer "why is this vulnerable?" at the level of bytes, which is what the field's hardest problems require.
What this direction looks like in code
Much of systems security is about one question: does the code trust a length it read from the input? Here is a parser for a simple type-length-value format, the shape of countless network protocols and file formats. It is written the safe way, with both checks a reviewer looks for:
#include <stdio.h>
#include <stdint.h>
#include <string.h>
/* A record is: 1 type byte, 1 length byte, then `length` bytes of value.
Return the number of records read, or -1 if the input is malformed. */
int parse_records(const uint8_t *buf, size_t len) {
size_t pos = 0;
int count = 0;
while (pos < len) {
if (len - pos < 2) return -1; /* no room for type and length */
uint8_t type = buf[pos], n = buf[pos + 1];
if (n > len - pos - 2) return -1; /* value would run past the end */
char value[256];
memcpy(value, buf + pos + 2, n);
value[n] = '\0';
printf(" record type %u, %u bytes: %s\n", type, n, value);
pos += 2u + n;
count++;
}
return count;
}
int main(void) {
const uint8_t good[] = {1, 3, 'a', 'b', 'c', 2, 2, 'o', 'k'};
const uint8_t lying[] = {1, 3, 'a', 'b', 'c', 2, 200, 'x'}; /* claims 200 bytes, has 1 */
printf("good input:\n");
printf(" -> %d records\n", parse_records(good, sizeof good));
printf("lying length:\n");
printf(" -> %d records\n", parse_records(lying, sizeof lying));
return 0;
}good input:
record type 1, 3 bytes: abc
record type 2, 2 bytes: ok
-> 2 records
lying length:
record type 1, 3 bytes: abc
-> -1 records
The second input claims a 200-byte value but has only one byte left. Without the check n > len - pos - 2, memcpy would read 199 bytes past the end of the buffer, an out-of-bounds read (and with a buffer smaller than 256, an overflow of value too). Note how the check is written: len - pos - 2 cannot underflow because the line before has already guaranteed len - pos >= 2; the tempting pos + 2 + n > len is also safe here with size_t, but in other code the addition is where integer-overflow bugs come from. The detection of the unchecked version is a compiler warning sometimes, AddressSanitizer or a fuzzer always (out-of-bounds reads, the fuzzing project); the fix is the two checks, or a memory-safe language where the slice carries its length.
Pitfalls
- Skipping priority 1. Learners who start with web tools and never learn Linux spend the next year fighting their own environment.
- Starting the systems direction without C. Reverse engineering a binary you could not have written is guesswork; write small C programs first and look at their compiled output.
- Choosing a specialisation in month one. Priority 8 comes last for a reason: you choose better after seeing a little of each.
Practice
1. Move "Cryptography and security fundamentals" to the first place in the list and run the check. Does it pass?
No: Applied Cryptography needs Security Foundations, which is mapped to priority 1, now second. The check reports that 'Cryptography and security fundamentals' needs sec-foundations from 'Linux system administration'. Move it to the front with PRIORITIES.insert(0, PRIORITIES.pop(3)) before the first check to see it.
2. Change the C parser's record format to a 2-byte big-endian length. Which checks change?
The header becomes 3 bytes, so the first check is len - pos < 3, the value length is (buf[pos + 1] << 8) | buf[pos + 2] and the second check is n > len - pos - 3. value must grow to 65,536 bytes or the code must reject n larger than the buffer: a length field wider than your buffer needs its own check.
Test yourself
Which is the roadmap's first starting priority?
- Penetration testing methodology
- Linux system administration
- Web application security
- Choosing a specialisation
Why does 'penetration testing first' fail the consistency check?
- It is illegal
- Penetration Testing builds on the web security and network assessment courses, which would come after it
- The script has a bug
- Pentesting needs no prerequisites
In the C parser, what does the check n > len - pos - 2 prevent?
- A division by zero
- Reading a value that runs past the end of the input buffer
- A memory leak
- A format-string bug
Where does the systems-programming direction lead, according to the roadmap?
- Toward management
- Toward low-level security engineering and vulnerability research
- Toward compliance work
- Toward help-desk roles