{"id":28088944,"url":"https://github.com/cyamos2/login-activity-report","last_synced_at":"2025-10-12T08:01:46.456Z","repository":{"id":292875545,"uuid":"982232257","full_name":"Cyamos2/login-activity-report","owner":"Cyamos2","description":"Python script that scans login logs, detects suspicious activity, and generates a summary report.","archived":false,"fork":false,"pushed_at":"2025-05-12T15:16:09.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-12T16:31:38.220Z","etag":null,"topics":["automation","comptia","cybersecurity","infosec","log-analysis","python","security-tools"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Cyamos2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-12T15:09:37.000Z","updated_at":"2025-05-12T15:17:17.000Z","dependencies_parsed_at":"2025-05-12T16:31:52.757Z","dependency_job_id":"77c10c9f-c8ff-4c1b-b2a5-4b14c9d00871","html_url":"https://github.com/Cyamos2/login-activity-report","commit_stats":null,"previous_names":["cyamos2/login-activity-report"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cyamos2%2Flogin-activity-report","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cyamos2%2Flogin-activity-report/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cyamos2%2Flogin-activity-report/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cyamos2%2Flogin-activity-report/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cyamos2","download_url":"https://codeload.github.com/Cyamos2/login-activity-report/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253947818,"owners_count":21988945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","comptia","cybersecurity","infosec","log-analysis","python","security-tools"],"created_at":"2025-05-13T12:52:41.176Z","updated_at":"2025-10-12T08:01:46.353Z","avatar_url":"https://github.com/Cyamos2.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🛡️ Login Activity Report Generator (Python)\n\nThis Python script simulates a basic log analysis tool that scans login activity, detects failed attempts, flags known suspicious IP addresses, and generates a simple security report.\n\n---\n\n## ✅ What It Does\n\n- Counts total login attempts  \n- Separates successful vs. failed logins  \n- Checks for known suspicious IPs  \n- Triggers an alert if suspicious activity is detected  \n- Prints a clean, readable summary report  \n\n---\n\n## 🧠 How It Works\n\n### Input:\nA list of fake log entries (could be adapted for real log files):\n```python\nlogs = [\n    \"SUCCESS: user1 from 192.168.1.5\",\n    \"FAILED: user2 from 10.0.0.99\",\n    \"FAILED: root from 66.66.66.66\",\n    ...\n]\n```\n\n### Logic:\n- Uses `for` loops to scan each log line  \n- Uses string checks (`\"SUCCESS\"` or `\"FAILED\"`) to classify outcomes  \n- Cross-checks each log line against a list of known suspicious IPs  \n\n### Output:\nExample console output:\n```\nLOGIN REPORT\n----------------\nTotal attempts: 6\nSuccessful logins: 2\nFailed logins: 4\nSuspicious IPs detected: 2\n⚠️ ALERT TRIGGERED\n```\n\n---\n\n## 🔧 Future Enhancements\n\n- Load log data from an external file  \n- Save the report as a `.txt` or `.csv`  \n- Add timestamps or usernames  \n- Use regular expressions for deeper pattern matching  \n- Integrate into a larger incident response toolkit  \n\n---\n\n## 🎯 Why This Project?\n\nThis tool was built as part of my **CompTIA Security+** and Python practice. It demonstrates:\n\n- Real-world log analysis thinking  \n- Secure coding and defensive scripting  \n- Automation of repetitive detection tasks  \n\n---\n\n✅ Feel free to fork, clone, or contribute!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyamos2%2Flogin-activity-report","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcyamos2%2Flogin-activity-report","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyamos2%2Flogin-activity-report/lists"}