Informasjon

What the course covers

The course looks at how C and C++ code can be made secure. It starts from the idea that software which behaves correctly under normal use may still fail when it receives unexpected input, such as malformed values, oversized data, null pointers or negative numbers. Attention is given to the mistakes that lead to these failures, what they can cause, and which practices reduce the risk.

Threats, risk and the basics of attacks

The first part introduces general cybersecurity concepts: what security means, how threats and risks are assessed, the main types of cyber threats, and the consequences of insecure software. It also discusses how cost and market pressure can influence security decisions.

Buffer overflows from the ground up

  • The low-level background needed to follow exploits: ARM64 assembly, registers, addressing, calling conventions and the stack frame.
  • How memory management problems arise, both on the stack and on the heap, and how attackers use them to take control of program flow.
  • Common coding errors behind buffer overflows, such as off-by-one errors, incorrect string length calculations and confusion over string termination.
  • Safer alternatives to risky functions, and a comparison of C-style strings with std::string.

Protections in the toolchain and at runtime

Several defensive layers are covered. At build time, the course looks at compiler options, warnings, FORTIFY_SOURCE, AddressSanitizer and hardening of the global offset table. Stack canaries and stack smashing protection are explained together with ways they can be bypassed. At runtime, the course addresses address space layout randomisation, non-executable memory with W^X, and attack techniques such as return-to-libc and return-oriented programming, along with the protections against them.

Who the course is for and how it is taught

The course is aimed at developers who write C or C++ code and have general experience with development in these languages. Teaching combines explanations with several practical labs in which participants exploit and then fix weaknesses. Real cases, including the Heartbleed vulnerability, are used to show how mistakes lead to consequences.

Gjennomføringer

Secure coding in C and C++
Dato Ingen planlagte datoer – ta kontakt for neste kurs
Type Hybrid
Varighet 3 dager
Pris 25 900 kr
Bestill her Bestilles hos Glasspaper. Åpnes i ny fane.

Ofte stilte spørsmål

What programming experience do I need to take this course?
The course is aimed at developers who write C or C++ code and have general experience with development in these languages. You should be familiar with C and/or C++ programming before enrolling.
What are the main topics covered in the course?
The course covers how to make C and C++ code secure by examining how software can fail with unexpected input. The main topics include: cybersecurity concepts and threat assessment, buffer overflows and memory management problems, common coding errors like off-by-one errors and incorrect string handling, safer alternatives to risky functions, and defensive protections including compiler options, stack canaries, address space layout randomisation, and non-executable memory.
How does the course teach about buffer overflows?
The course builds understanding from the ground up by first covering low-level background such as ARM64 assembly, registers, addressing, calling conventions and the stack frame. It then explains how memory management problems arise on the stack and heap, and how attackers exploit them to take control of program flow. The course also covers common coding errors that lead to buffer overflows and discusses safer alternatives to risky functions.
What practical elements are included in the course?
The course combines explanations with several practical labs in which participants exploit and then fix weaknesses. Real cases, including the Heartbleed vulnerability, are used to demonstrate how mistakes lead to consequences.
What runtime and build-time protections does the course cover?
The course covers several defensive layers. At build time, it examines compiler options, warnings, FORTIFY_SOURCE, AddressSanitizer and hardening of the global offset table. At runtime, it addresses address space layout randomisation, non-executable memory with W^X, and attack techniques such as return-to-libc and return-oriented programming, along with the protections against them. The course also explains stack canaries and stack smashing protection, including ways they can be bypassed.
What is the difference between C-style strings and std::string that the course discusses?
The course compares C-style strings with std::string as part of its coverage of safer alternatives to risky functions. This comparison is included to help developers understand how to write more secure string handling code.

Om kursleverandøren

Glasspaper

Glasspaper Group er en kompetansepartner som leverer opplærings-, rekrutterings- og bemanningsløsninger gjennom flere datterselskaper. Hovedselskapet Glasspaper Learning tilbyr et bredt kurssortiment innen IT, prosjektledelse, sikkerhet, kunstig intelligens, Microsoft-teknologi og design. Selskapet gjennomfører kurs på flere lokale steder i Norge og tilbyr både åpne kurs, sertifiseringer og e-læring. Kursene henvender seg til fagfolk som ønsker å utvikle eller dokumentere sin kompetanse, samt virksomheter som trenger kompetanseheving for sine ansatte.

Les merVis mindre

Glasspaper People håndterer rekruttering og bemanning, med spesialisering på IT-stillinger innen systemutvikling, sikkerhet, skyløsninger og økonomi. Konsulentselskapet Artisan Consulting leverer digitale løsninger basert på Microsoft-teknologi og populære rammeverk. Gruppen tilbyr også andre tjenester som grafisk design og visuell kommunikasjon gjennom IGM, compliance-løsninger via Kamude, og e-læringsplattformen XtraMile. Alle løsningene skal kombineres for å hjelpe kundene til raskere måloppnåelse.

Interessert?

Send en melding til kursleverandøren

Kurs etter kategori

Finn kurs innen fagområdet du leter etter.

Se alle kategorier →
Skroll til toppen