Get in Touch

Course Outline

1. IT security and secure coding

  • Fundamental Security Principles: Confidentiality, Integrity, and Availability (CIA) within the context of Java applications.
  • Secure Software Development Lifecycle (SSDLC): Integrating security measures from the requirements phase through to deployment.
  • Secure Coding Paradigms: Employing defence in depth, the principle of least privilege, and fail-safe defaults.
  • Standard Vulnerability Classifications: Understanding CWE (Common Weakness Enumeration) and OWASP standards.

2. Web application security

  • Deep Dive into OWASP Top Ten: In-depth analysis of Injection, Broken Authentication, and Sensitive Data Exposure.
  • Cross-Site Scripting (XSS): Examining Reflected, Stored, and DOM-based XSS scenarios in Java/JSP.
  • Cross-Site Request Forgery (CSRF): Understanding attack mechanisms and the implementation of Anti-CSRF tokens.
  • Session Management: Ensuring cookie security, preventing session fixation, and managing timeouts.
  • API Security: Securing REST and SOAP endpoints against malicious abuse.

3. Security of Web services

  • Web Services vs. Traditional Web Apps: Analysing differences in attack surfaces.
  • Transport Layer Security: Configuring SSL/TLS for Java clients and servers.
  • Message Security: Ensuring Integrity and Confidentiality at the payload level.
  • Authentication Standards: Implementing OAuth 2.0, OpenID Connect, and JWT (JSON Web Tokens).

4. XML security

  • XML Parsing Vulnerabilities: Preventing XML External Entity (XXE) attacks.
  • XML Schema Validation: Best practices for enforcing strict schema compliance.
  • XML Digital Signatures: Implementing signatures to guarantee non-repudiation.
  • XML Encryption: Standard methodologies for encrypting XML content.

5. Foundations of Java security

  • The Java Security Architecture: The java.security package and provider architecture.
  • Security Providers: Installing and configuring providers such as Bouncy Castle.
  • Access Control: Managing policy files, Permissions, and the Security Manager (comparing Legacy vs. Modern approaches).
  • KeyStore Management: Creating and managing keystores and truststores for certificates.

6. Practical cryptography

  • Cryptographic Algorithms: An overview of Symmetric (AES), Asymmetric (RSA, ECC), and Hashing (SHA-256/512) algorithms.
  • Random Number Generation: The risks associated with java.util.Random versus the benefits of java.security.SecureRandom.
  • Key Management: Strategies for key generation, storage, and rotation.
  • Java Cryptography Architecture (JCA): Utilising Cipher, MessageDigest, and Mac classes.
  • Java Cryptography Extension (JCE): Understanding policy files and unlimited strength jurisdiction.

7. Java security services

  • SSL/TLS in Java: Using SSLSocketFactory and HttpsURLConnection.
  • Trust Managers: Customising trust verification for private PKI environments.
  • Authenticators: Performing programmatic authentication using Authenticator.getDefault().
  • Certificate Parsing: Programmatically reading and analysing X.509 certificates.

8. Java EE security

  • Declarative Security: Implementing role-based access control (RBAC) using web.xml and annotations.
  • Programmatic Security: Utilising HttpServletRequest.isUserInRole() and getRemoteUser().
  • JAAS (Java Authentication and Authorization Service): Configuring login.conf and implementing LoginModules.
  • Servlet Security: Applying container-managed security constraints and authentication methods (FORM, BASIC, DIGEST).

9. Common coding errors and vulnerabilities

  • Insecure Deserialization: Assessing the risks of ObjectInputStream and the potential for bypassing security checks.
  • Command Injection: Mitigating OS-level execution vulnerabilities.
  • Path Traversal: Sanitising file system inputs to prevent directory traversal attacks.
  • Reflection Abuse: Examining risks associated with java.lang.reflect and potential bypasses of access control.
  • Hardcoded Credentials: Identifying and removing secrets from source code.
  • Cryptography Implementation Errors: Avoiding the use of ECB mode, weak keys, or static IVs.

10. Knowledge sources

  • Static Analysis Tools: Utilising SonarQube, Checkmarx, and Fortify for automated scanning.
  • Dynamic Analysis Tools: An overview of Burp Suite and OWASP ZAP.
  • CVE Databases: Tracking and responding to new Java framework vulnerabilities.
  • Recommended Readings: A list of books, documentation, and secure coding checklists.

Requirements

None.

 21 Hours

Testimonials (4)

Upcoming Courses

Related Categories