Skip to content
Lesson 2 of 80 completed · Sign in to track completionCourse overview →Glossary ↗
Course contents · Scope and session
  1. 1. Bound the AppScan application before reviewing coverageFree
  2. 2. Validate AppScan session detection with two known statesFree
  3. 3. Map AppScan explored routes and ordered workflowsFree account
  4. 4. Review AppScan test policy, optimization and scan phasesPremium
  5. 5. Read AppScan progress without losing the execution boundaryPremium
  6. 6. Review AppScan issue variants before changing dispositionPremium
  7. 7. Verify AppScan retest scope before accepting a fixed resultPremium
  8. 8. Handover AppScan evidence with report and coverage limitsPremium

Validate AppScan session detection with two known states

Compare known signed-in and signed-out responses before trusting authenticated coverage. A login recording can succeed while its session check follows the wrong page or logs in again.

25 MIN

By AISecurityInterviews · Updated

Keep a return link on this browser. No account needed.

TL;DR: Compare known signed-in and signed-out responses before trusting authenticated coverage. A login recording can succeed while its session check follows the wrong page or logs in again.

Where you are. Qualify the account role and the session signal before interpreting authenticated routes.

Reference and lab scope. HCL AppScan Standard 10.12.0 documentation, checked November 2026. The fictional Cedarvale staging application and existing licensed Windows installation are the reference environment. Procedures are documentation-checked; no scanner or application was operated. Python exercises use supplied records offline. Optional product work requires explicit authorization for the application, accounts, requests and effects. This reference version is not an upgrade recommendation.

Define the session claim

Cedarvale wants coverage as an ordinary document reader. An administrator session would expose a different route set and could hide a broken authorization boundary. Leah supplies a dedicated staging account, its role, recovery contact and approved login behavior. Nikhil records the account’s logical identity without placing its password, session cookie or recovery codes in a ticket. The protected asset is the reader’s session; someone who obtains its recorded credentials or cookies may inherit its access.

First confirm the expected role through the application’s own identity information. Then identify a response that reliably differs between a known signed-in state and a known signed-out state. A generic page title, shared navigation bar or successful HTTP response is not sufficient. An application may return its login page with status 200, or load a common shell before deciding whether protected data is available.

This course assumes a supported, already approved staging login path. It does not bypass MFA, CAPTCHA, account lockout or an identity provider’s controls. If the product cannot sustain the required session under those controls, record the limitation and involve the customer’s identity owner. Broader privileges are not a substitute for a valid reader session.

Separate recording from session detection

The Login troubleshooting reference describes action-based and request-based recordings separately. One may succeed while the other fails. Record which method actually validates and is selected for use. A successful action recording does not prove that every request-based sequence is valid.

The green pattern indicator means that AppScan identified a candidate session pattern. Validate its meaning against both states. HCL specifically warns about a session-check request that also contains the login operation: replaying it signs the user in again, preventing the check from observing a logged-out state. Choose a subsequent, approved page whose request does not submit credentials. Avoid performing an unnecessary business action just to obtain a distinctive response.

For request-based troubleshooting, inspect Scan Configuration > Login Management > Details > Requests, choose the request marked In-Session, and use Select to review a different pattern. After a change, use Validate within the authorized staging workflow. The request-based guide explains why redirects require attention: the destination displayed by a browser may differ from the actual response being classified. Preserve the original response context rather than choosing text from an unrelated redirected page.

Inspect the official comparison dialog

HCL’s Select Detection Pattern image shows four panes: the request and response for each session state. Open it alongside the dialog reference. Inspect which request generated each response, the highlighted candidate pattern, and the In-Session/Out-of-Session selection. The reference also documents Login Management > Advanced options > Session Detection > Advanced pattern selection for this comparison.

The retained image includes older browser/server details and sample session cookies. Treat it as a visual explanation of the comparison, not a recommended browser, protocol or authentication configuration. Do not copy its marker into Cedarvale’s settings. Its valid-pattern banner describes the vendor’s example, not a test performed for this course. The official image is linked rather than republished.

Diagnose loss of authenticated coverage

If expected protected routes disappear, inspect session validation and application-side account observations before interpreting the finding count. HCL’s out-of-session troubleshooting includes invalid credentials, lockout and login issues. Coordinate any retry with Leah and the approved lockout policy. Preserve failures; repeatedly retrying a locked account can worsen availability without adding useful coverage.

The offline exercise classifies supplied response fixtures. It intentionally rejects a marker found in both states and a request that authenticates as a side effect. It is not a general session detector, and string matching here does not reproduce AppScan’s pattern engine. The provider must retain the observed role, chosen request, validation time and relevant limitations with the run record.

APPSCAN · SESSION EVIDENCE
The same candidate marker is checked in both states

Shared page marker

Signed in

Marker present

Signed out

Marker also present

Outcome, unsafe: Cannot distinguish the states

Qualified fixture marker

Signed in

Marker present

Signed out

Marker absent

Outcome, safe: Candidate for these fixtures

Also check that the request does not log in.

def qualify(marker, signed_in, signed_out, submits_credentials=False):
    if not marker or submits_credentials:
        return 'invalid session check'
    if marker not in signed_in:
        return 'missing positive control'
    if marker in signed_out:
        return 'ambiguous pattern'
    return 'candidate qualified for these fixtures'

inside = 'Portal navigation. Reader account settings.'
outside = 'Portal navigation. Sign in.'
assert qualify('Portal navigation', inside, outside) == 'ambiguous pattern'
assert qualify('Reader account settings', inside, outside, True) == 'invalid session check'
assert qualify('Reader account settings', outside, outside) == 'missing positive control'
assert qualify('Reader account settings', inside, outside) == 'candidate qualified for these fixtures'
print('Positive state, negative state and request effects reviewed')

Do this before moving on

Find the deliberately ambiguous marker in the supplied responses. Replace it with a candidate that distinguishes these fixtures, then change the signed-out fixture so it includes that candidate. Explain the resulting failure and the product evidence needed before relying on authenticated coverage.

Go deeper

Key takeaways

  • Qualify the application role as well as login success.
  • A session check must distinguish known states without logging in again.
  • Record redirects, validation method and loss-of-session gaps.

Check yourself

Say or write your answer first, then reveal. Explaining it from memory, in your own words, is the skill an interviewer is checking.

  1. 1A pattern appears in both the reader page and the login page. How should it be treated?

  2. 2Replaying the chosen session-check request submits the login credentials. What should change?

Sign in to track which lessons you have finished.