INNER CODE UNIT · Python

access_log

BlessedRebuS/Krawl · src/database/core.py:347

                    access_log = AccessLog(
                        ip=sanitize_ip(ip),
                        path=sanitize_path(path),
                        user_agent=sanitize_user_agent(user_agent),
                        method=method[:10],
                        is_suspicious=is_suspicious,
                        is_honeypot_trigger=is_honeypot_trigger,
                        timestamp=datetime.now(),
                        raw_request=raw_request,
                        referer=sanitize_path(referer) if referer else None,
                    )
                    session.add(access_log)
                    session.flush()

                    if attack_types:
                        matched_patterns = matched_patterns or {}
                        for attack_type in attack_types:
                            detection = AttackDetection(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…