netanelcyber / netanelcyber/AdPentestAI-Python

πŸ› Bug Report Template

Open
#8 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug documentation template
Dominant language
Python
Stars
5
Forks
2
Avg merge
22h 25m
Merged PRs (30d)
7

Description

πŸ› Bug Report Template

Use this template when reporting bugs in AdPentestAI-Python. Please fill out all sections for faster resolution.


πŸ“‹ Bug Description

What is the bug?
[Provide a clear, concise description of the issue]

Expected behavior:
[What should happen?]

Actual behavior:
[What actually happens?]

πŸ”„ Steps to Reproduce

Environment:

  • Python version: [e.g., 3.10, 3.11, 3.12]
  • OS: [e.g., Linux, Windows, macOS]
  • AdPentestAI version: [e.g., 1.0.2]

Command used:

python -m adpentest --target <target> --mode <mode> [options]

Step-by-step reproduction:

  1. [First step]
  2. [Second step]
  3. [etc.]
πŸ“Š Error Output

Error message:

[Paste the full error message/traceback here]

Debug logs:

# Run with verbose output to capture debug info
python -m adpentest --target <target> --mode active --scope-confirmed 2>&1 | tee debug.log

[Paste relevant stderr output]

🎯 Impact

Severity: [Critical/High/Medium/Low]

  • Critical: Tool crashes, data loss, security bypass
  • High: Feature doesn't work, significant performance issue
  • Medium: Workaround available, partial functionality
  • Low: Minor cosmetic issue, documentation improvement

Affected tools: [e.g., nmap_scan, ldap_enum, email_server_discovery]

πŸ” Additional Context

Network environment:

  • Lab/Test environment
  • Production environment
  • Cloud environment (AWS/Azure/GCP)
  • On-premises

Domain configuration:

  • Domain name: [e.g., example.local]
  • Domain functional level: [e.g., 2016, 2019, 2022]
  • Forest level: [e.g., 2016, 2019]
  • Number of DCs: [e.g., 2, 5, 10]

Network conditions:

  • Direct network access to target
  • Behind firewall/proxy
  • High latency network (>100ms)
  • Limited bandwidth

Have you tried?

  • Running in dry-run mode first (--mode dry-run)
  • With a different target
  • On a different machine
  • Updating to latest version
  • Disabling custom DNS (--dns-server)
πŸ“Ž Attachments

Configuration (if applicable):

# Redact sensitive information (IP addresses, domain names)
# Share anonymized config or command used

Sample output:

{
  "status": "partial",
  "environment": {...},
  "errors": [...]
}

Screenshots: [Attach any relevant screenshots]

πŸŽ“ Related Issues
  • Relates to: [Link other issues if applicable]
  • Duplicate of: [If this is a duplicate, link the original]
  • Blocks: [If this blocks other work]
βœ… Checklist
  • I have searched existing issues (open & closed)
  • I have tried the latest version
  • I have tried dry-run mode (--mode dry-run)
  • I have redacted sensitive information (IPs, usernames, domain names)
  • I have included the full error message/traceback
  • I have included Python version and OS information
  • I have included the command used to trigger the bug
  • I am running AdPentestAI with proper authorization

🚫 Before You Submit

Please DO NOT include:

  • Real IP addresses, hostnames, or domain names
  • Usernames, passwords, or credentials
  • NTLM hashes, Kerberos tickets, or other sensitive credentials
  • Internal network topology details
  • Proprietary information

Replace with anonymized versions:

  • 10.1.2.3 β†’ 10.0.0.1
  • corp.local β†’ example.local
  • user@corp.local β†’ user@domain.local
  • Full hashes β†’ <NTLM_HASH> or <KRBTGT_HASH>

πŸ“ Example Bug Report

πŸ“‹ Bug Description

What is the bug?
LDAP RootDSE enumeration fails with timeout error when DC is in different subnet.

Expected behavior:
Should query DC's RootDSE successfully and extract domain information.

Actual behavior:
Tool times out after 10 seconds and reports "Connection refused" error.

πŸ”„ Steps to Reproduce

Environment:

  • Python version: 3.11
  • OS: Ubuntu 22.04
  • AdPentestAI version: 1.0.2

Command used:

python -m adpentest --target 10.0.0.50 --mode active --scope-confirmed --timeout 10

Step-by-step reproduction:

  1. Run the command above
  2. Tool attempts DC detection
  3. Timeout occurs during LDAP RootDSE probe
  4. Tool reports error and continues
πŸ“Š Error Output

Error message:

[VERBOSE] [probe_ldap_rootdse] Querying RootDSE on 10.0.0.50:389
[ERROR] LDAP probe failed: Socket timeout (10 seconds exceeded)
[VERBOSE] [detect_dcs] LDAP RootDSE probe failed, trying next strategy...

Debug logs:
[Output from python -m adpentest ... 2>&1 | grep LDAP]

🎯 Impact

Severity: Medium

  • Tool falls back to other detection methods
  • Workaround: Increase timeout with --dns-timeout 20
  • Affected tool: enum_ldap, detect_dcs
πŸ” Additional Context

Network environment:

  • On-premises
  • Network: 10.0.0.0/8 (DC on 10.0.0.50, attacker on 10.1.1.10)
  • Latency: ~50ms between subnets

Domain configuration:

  • Domain: example.local
  • Domain functional level: 2019
  • Number of DCs: 3

πŸ’¬ Questions?

If you have questions about your issue:

  1. Check the CLAUDE.md architecture documentation
  2. Review CONTRIBUTING.md development guidelines
  3. Open a GitHub Discussion: https://github.com/netanelcyber/AdPentestAI-Python/discussions

πŸŽ‰ Thank You

Thank you for helping improve AdPentestAI-Python! Bug reports help make the framework more reliable for everyone.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up β€” it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue body is a complete bug-report template rather than a concrete change request, and it names no file or test to update. Read CLAUDE.md and CONTRIBUTING.md only if a specific template-maintenance task is clarified; completion criteria cannot be determined from the current report.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.