Application security is a critical domain within cyber security, focusing on protecting software applications from threats that could compromise data integrity, confidentiality, or availability. In Kenya's rapidly digitizing economy, where businesses and government agencies increasingly rely on software systems, ensuring robust application security is vital to safeguard sensitive information against cyberattacks. Cyber security professionals must understand the principles and phases of application security to conduct effective assessments and implement security controls that reduce vulnerabilities. This chapter equips learners with foundational knowledge to perform comprehensive application security assessments in diverse Kenyan organizational contexts.
Application security encompasses the measures and practices designed to protect software applications from external and internal threats throughout their lifecycle. This discipline aims to prevent security breaches that could lead to unauthorized access, data theft, or service disruption. Kenyan institutions such as banks and county governments have experienced attacks exploiting application vulnerabilities, underscoring the need for proactive application security strategies. Understanding the core concepts of application security enables cyber security professionals to identify risks and apply appropriate controls tailored to the Kenyan technological landscape.
Application security refers to the processes, tools, and practices implemented to prevent, detect, and remediate vulnerabilities in software applications. It involves securing applications from development through deployment and maintenance to ensure they function as intended without exposing sensitive data or systems to threats. This includes coding practices, security testing, and runtime protection. For example, a SACCO’s member portal must have application security measures to prevent unauthorized access to financial records and protect members’ personal information.
Application security is vital because most cyberattacks exploit software vulnerabilities rather than network weaknesses. Weak application security can lead to data breaches, financial loss, and reputational damage. In Kenya, where digital financial services are expanding rapidly, application security failures can disrupt critical services such as mobile banking platforms. Ensuring applications are secure helps maintain business continuity, comply with data protection laws like the Data Protection Act 2019, and protect user privacy.
Applications face numerous threats that cyber security professionals must anticipate and mitigate. These include injection attacks such as SQL injection, cross-site scripting (XSS), broken authentication, and insecure direct object references. For instance, a university’s student registration system vulnerable to injection attacks could allow attackers to manipulate database queries, compromising student records. Understanding these threats aids in prioritizing security controls during assessments.
Effective application security involves adopting secure coding standards, conducting regular security testing, and employing automated tools like static application security testing (SAST) and dynamic application security testing (DAST). Kenyan software development firms use these tools to identify vulnerabilities early in the development cycle. Additionally, practices such as threat modeling and penetration testing help simulate attacks and evaluate the system’s resilience. Integrating these practices reduces the likelihood of exploitable flaws in deployed applications.
Create a free account to open more of this chapter.
Free: practical guides, quick cards, workplace scenarios and more.
Create a free accountThis chapter provides a comprehensive overview of application security, emphasizing its critical role in protecting software from threats and vulnerabilities. It outlines the key phases of application security, starting with reconnaissance and information gathering, which includes both passive and active methods to collect data about the target system. The chapter then explores threat modelling techniques, focusing on the STRIDE and PASTA models, which help identify and prioritize potential security risks. Vulnerability assessment is addressed through manual testing and the use of automated scanning tools to detect weaknesses within applications. Following this, the process of exploitation and verification is discussed, highlighting how identified vulnerabilities are tested for impact and validity. The chapter concludes with best practices for maintaining robust application security, ensuring ongoing protection against evolving threats.
Type: Individual
| Tools & Equipment | Materials |
|---|---|
| Laptop with internet access | Target application URL document |
| Wireshark software | |
| Maltego Community Edition software | |
| theHarvester tool |
| S/N | Item | Quantity |
|---|---|---|
| 1 | Laptop with internet access | 1 Pc per Candidate |
| 2 | Installed Wireshark software | 1 Pc per Candidate |
| 3 | Installed Maltego Community Edition software | 1 Pc per Candidate |
| 4 | Installed theHarvester tool | 1 Pc per Candidate |
| 5 | Target application URL document | 1 Pc per Candidate |
| Items to be Evaluated | Marks Available | Marks Obtained | Comments |
|---|---|---|---|
| TASK 1: Preparation and Setup | |||
| Candidate wears appropriate PPE (e.g., anti-static wrist strap if applicable) (Award 1 mark for correct PPE usage or zero) | 1 | ||
| Launched laptop and logged into user account (Award 1 mark for successful login) | 1 | ||
| Opened terminal or command prompt ready for tool usage (Award 1 mark for readiness to run commands) | 1 | ||
| Sub-Total | 3 | ||
| TASK 2: Passive Reconnaissance Execution | |||
| Used theHarvester to gather domain and email information with command: theHarvester -d bankxyz.co.ke -b all (Award 3 marks for correct command usage and output) | 3 | ||
| Used Maltego Community Edition to map subdomains and gather network information (Award 3 marks for correct tool usage and mapping) | 3 | ||
| Monitored network traffic passively with Wireshark without sending packets (Award 2 marks for correct passive sniffing setup) | 2 | ||
| Documented collected information including domain registrar, IP ranges, and email addresses (Award 3 marks for complete and accurate documentation) | 3 | ||
| Sub-Total | 11 | ||
| PRODUCT CHECKLIST | |||
| Comprehensive report detailing discovered subdomains, email addresses, IP ranges, and domain registrar information (Award 6 marks for completeness, accuracy, and clarity) | 6 | ||
| Sub-Total | 6 | ||
| GRAND TOTAL | 20 | ||
Type: Individual
| Tools & Equipment | Materials |
|---|---|
| Laptop with Kali Linux OS installed | Access credentials to the test environment |
| Internet connection | Target web application URL |
| S/N | Item | Quantity |
|---|---|---|
| 1 | Laptop with Kali Linux OS installed | 1 Pc per Candidate |
| 2 | Internet connection | 1 per Candidate |
| 3 | Access credentials to the test environment | 1 set per Candidate |
| 4 | Target web application URL | 1 per Candidate |
| Items to be Evaluated | Marks Available | Marks Obtained | Comments |
|---|---|---|---|
| TASK 1: Set up and verify environment | |||
| Verified laptop has Kali Linux OS installed and updated (Award 2 marks for complete verification or zero) | 2 | ||
| Connected to Internet and confirmed connectivity (Award 2 marks for successful connection or zero) | 2 | ||
| Accessed test environment using provided credentials (Award 2 marks for successful access or zero) | 2 | ||
| Sub-Total | 6 | ||
| TASK 2: Conduct active reconnaissance | |||
| Performed ping test to www.bankxyz.co.ke to confirm host availability (Award 2 marks for successful ping or zero) | 2 | ||
| Used Nmap to scan for open TCP ports on www.bankxyz.co.ke (e.g. sudo nmap -sS -Pn www.bankxyz.co.ke) (Award 4 marks for correct scan and results or zero) | 4 | ||
| Enumerated running services on discovered open ports (Award 3 marks for accurate service detection or zero) | 3 | ||
| Used a web application scanner (e.g. Nikto or OWASP ZAP) to identify application endpoints and directories (Award 3 marks for effective scanning and documentation or zero) | 3 | ||
| Sub-Total | 12 | ||
| TASK 3: Documentation and reporting | |||
| Documented all open ports, services, and application endpoints discovered (Award 4 marks for complete and clear documentation or zero) | 4 | ||
| Provided screenshots or command outputs as evidence (Award 3 marks for relevant evidence or zero) | 3 | ||
| Sub-Total | 7 | ||
| PRODUCT CHECKLIST | |||
| Comprehensive report containing host availability, open ports with correct port numbers, service names, and application endpoints (Award up to 15 marks for accuracy, completeness and clarity) | 15 | ||
| Sub-Total | 15 | ||
| GRAND TOTAL | 40 | ||