Module 1 of 8Free to explore

Pentest rules of engagement, scope, and reconnaissance planning

2 hoursTheory and practiceEasy

Lesson 1. Begin with an authorized question

A penetration test examines agreed security hypotheses about a system. A scanner, CVE list, or successful request does not define its scope. Before technical work, record the asset owner, permitted addresses, test identities, time window, allowed operations, and stop contact. These constraints matter in training too: the result must address the owner’s question rather than maximize the number of discovered services.

Reconnaissance can involve supplied evidence, published information, or active checks of an agreed system. These methods establish different facts. A DNS record associates a name with an address at a particular time; it does not establish ownership of every neighboring address. A link from an allowed application does not automatically bring another resource into scope.

Lesson 2. Artifact: a sample owner brief

project: Training Shop
allowed:
  - https://shop.training.example
accounts: [buyer-A, buyer-B]
window: 2026-10-07 09:00–12:00 UTC
allowed_actions: [read sample records, compare access permissions]
excluded: [payment provider, production customers, password guessing]
stop_condition: unexpected real customer data
contact: training-owner
linked_resource: https://pay.partner.example

An appropriate plan compares access by two test buyers to their sample orders. The payment partner is excluded even if the application redirects users there. Unexpected real customer data is a stop condition, not an invitation to collect additional records.

Lesson 3. Scope and approval ownership

A pentest is an agreed technical review, not permission to investigate every similar address. Scope identifies assets, accounts, actions, timing, exclusions, and stop conditions. Rules of engagement define owner contact, incident handling, evidence, and cleanup. A company name or DNS suffix does not automatically include suppliers.

A beginner reads the brief first and asks a precise question about host, account, and action. Owner silence does not establish authorization. If an approved request exposes data that should have been fictional, stop and use the agreed contact. Do not continue collection to prove scale.

Lesson 4. Check a plan locally

Save scope_check.py and run Python 3. Fictional hostnames are not resolved and no network targets are contacted.

# scope_check.py: offline permission record, no requests sent
scope = {
    'allowed_hosts': {'shop.training.example'},
    'allowed_accounts': {'buyer-A','buyer-B'},
    'excluded_actions': {'password-guessing','real-payment','production-change'},
}
def permitted(host, account, action):
    return (host in scope['allowed_hosts']
            and account in scope['allowed_accounts']
            and action not in scope['excluded_actions'])
cases = [
 ('shop.training.example','buyer-A','read-training-order',True),
 ('partner.training.example','buyer-A','read-training-order',False),
 ('shop.training.example','buyer-A','real-payment',False),
 ('shop.training.example','unknown-user','read-training-order',False),
]
for host, account, action, expected in cases:
    actual = permitted(host, account, action)
    assert actual == expected
    print(host, action, 'IN SCOPE' if actual else 'OUT OF SCOPE')
print('time window and owner approval require separate confirmation')

Expect one IN SCOPE and three OUT OF SCOPE records. The model does not validate calendar windows, approval signatures, or a complete action allowlist. True means three local conditions match rather than final legal authorization. Actual documents must state permitted actions; replace broad exclusion-only logic with an explicit allowlist where required.

Record brief version, owner, date, host/account/action, and the supporting permission clause. Add an unknown address and verify rejection. Prepare an owner question about undocumented training-order creation and await clarification before execution.

For Russian-market work, scope connects to contracts, internal policy, and applicable law, but this lesson provides no legal opinion. OWASP and PTES are methodological sources rather than Russian statutes. Preserve minimal evidence in an approved storage location. Deliver a precise agreed-test plan that can be defended verbally and handed to a supervisor without ambiguous boundaries.

Exercise

Write a scope document with five sections: assets, identities, permitted checks, exclusions, and owner communication. Propose three hypotheses for shop.training.example: separation of buyers’ orders, protection of order changes, and behavior without a session. For each, identify source data, the smallest permitted request, expected secure behavior, and a stop condition. This is a planning exercise; do not test the external example addresses.

Review and acceptance criteria

All three hypotheses must use only the sample accounts and records, exclude the partner, and include a stop condition. Explain the difference between inventory and vulnerability evidence: a recorded route does not itself demonstrate an authorization failure. Describe which logs or responses should be preserved so the check can be repeated, and which data should be minimized. Do not label three constrained hypotheses a complete penetration test. Work duration and coverage depend on the target system; this module assesses the ability to prepare a defensible test brief.

Sources

Try the idea yourself

An event is not yet an incident

Change the conditions and observe this training model. It runs in your browser and does not change your computer.

Select the events you want to include in your explanation.

Observation

Choose conditions above to see an explanation of the result.

Independent exercise · Russian

Две плитки лежат внутри голубого лотка, ещё одна — на столе за его бортиком.
Сопоставьте предметы по обе стороны бортика с реестром из первого задания. Кто вправе перенести актив в согласованную область проверки?

Учебный диспетчерский центр в Твери готовит осеннюю приёмку 2026 года. Руководитель эксплуатации передал три строки из инвентарной ведомости и подписанную заявку А-41. Календарь общий у центра и у перевозчика. Требуется определить, какие материалы аналитик вправе взять в работу.

Evidence

А-41 разрешает изучение схем и обезличенных журналов учебного портала Д-2 с 12 по 14 октября. Д-2 принадлежит центру. Д-3 обслуживает подрядчик, согласования нет. Д-4 является прежним именем Д-2 по устной версии инженера, поле идентификатора в ведомости пусто.

Assignment

Сдайте таблицу из трёх строк. Для каждой укажите допустимое действие сегодня, основание решения и документ, который мог бы изменить вывод.

Compare your reasoning

Можно разобрать переданные материалы Д-2 в указанное окно. Для Д-3 нужно согласование владельца и уточнение заявки. Для Д-4 требуется привязка к инвентарному идентификатору Д-2 либо отдельное разрешение. Проверьте, что в плане остались только работа с документами и названные даты.

Personal practice environment

Check an excerpt, find matching lines and compute the SHA-256 of the original text. Temporary data expires after 30 minutes or when you close the environment.