Hybrid Analysis

A mixture of static analysis and dynamic analysis.

Coverage and Path Exploration

Coverage Measures

  • Statement coverage
    The percentage of statements executed by some test.
  • Branch coverage
    The percentage of branch outcomes taken.

Both reveal untested paths but cannot warn about missing code.

Concolic Testing

Concrete plus symbolic execution. It walks the program path by path instead of guessing inputs, getting past checks random fuzzing almost never hits, such as magic values, checksums, and parser keywords.

  1. Run the program on a real input.
  2. Track the branch conditions symbolically along the path taken, forming the path constraint.
  3. Negate one condition to target a new path, and pass the constraint set to an SMT solver.
  4. The solver returns a concrete input satisfying the new set.
  5. Run that input and repeat.

The costs are expensive solver queries and path explosion.

Examples:

  • SAGE
  • KLEE
  • fuzzgrind

Adversarial Testing

Penetration Testing

An authorized attempt to exploit weaknesses in a system. Testers act as adversaries within agreed limits. The test validates whether a weakness is reachable and measures its impact on the target.

Effectiveness depends on tester skill, knowledge of the target, and realistic rules of engagement. Kali Linux bundles many common testing tools.

Testers receive different amounts of information about the target:

  • Black-box testing
    No internal knowledge is supplied.
  • Gray-box testing
    Partial knowledge, such as user credentials or architecture diagrams, is supplied.
  • White-box testing
    Source code, configuration, and full system knowledge are supplied.

Rules of Engagement

Also known as RoE. Defines what the testers may do and protect production systems from unintended harm.

  • Scope
    Identifies the systems, applications, networks, accounts, and data that may be tested.
  • Testing window
    Restricts testing to agreed times when monitoring and incident response teams are available.
  • Allowed actions
    States whether social engineering, denial-of-service testing, privilege escalation, or data extraction are permitted.
  • Stop conditions
    Defines when testing must stop, such as service degradation or exposure of sensitive data.
  • Contacts
    Names the people who authorize the test and receive incident notifications.

Written authorization is required before reconnaissance, scanning, or exploitation begins.

Testing Workflow

  1. Collect information about the target and its attack surface.
  2. Enumerate reachable services, endpoints, accounts, and configurations.
  3. Identify weaknesses that can be reached within the agreed scope.
  4. Exploit a weakness only far enough to demonstrate its impact.
  5. Record evidence, affected assets, attack prerequisites, and remediation guidance.
  6. Retest after fixes are deployed.

The final report ranks findings by likelihood and impact. It distinguishes confirmed vulnerabilities from observations that need further investigation. A penetration test gives evidence for the systems and time period tested. It cannot prove that no vulnerabilities exist.

Written by October 29, 2026 3 min read
Was this helpful?