{"id":25290818,"url":"https://github.com/pirocheto/phishing-url-detection","last_synced_at":"2025-04-06T19:17:15.517Z","repository":{"id":204350609,"uuid":"711345987","full_name":"pirocheto/phishing-url-detection","owner":"pirocheto","description":"Train a machine learning model for Phishing URL Detection with mlops practices.","archived":false,"fork":false,"pushed_at":"2023-12-04T15:12:57.000Z","size":212238,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T00:49:55.304Z","etag":null,"topics":["ai","anti-phishing","cybersecurity","data-science","machine-learning","mlops","phishing-detection"],"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/pirocheto.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}},"created_at":"2023-10-29T00:52:20.000Z","updated_at":"2025-02-02T08:35:06.000Z","dependencies_parsed_at":"2024-01-13T07:23:19.261Z","dependency_job_id":"9cc4bff7-19bf-438e-a951-4fe324bb7c15","html_url":"https://github.com/pirocheto/phishing-url-detection","commit_stats":{"total_commits":423,"total_committers":3,"mean_commits":141.0,"dds":"0.11111111111111116","last_synced_commit":"7b95aaabd2866b2813e78691b84f373aa1fc41ec"},"previous_names":["pirocheto/phishing-detection"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirocheto%2Fphishing-url-detection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirocheto%2Fphishing-url-detection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirocheto%2Fphishing-url-detection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirocheto%2Fphishing-url-detection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pirocheto","download_url":"https://codeload.github.com/pirocheto/phishing-url-detection/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247535520,"owners_count":20954576,"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":["ai","anti-phishing","cybersecurity","data-science","machine-learning","mlops","phishing-detection"],"created_at":"2025-02-13T00:50:00.785Z","updated_at":"2025-04-06T19:17:15.485Z","avatar_url":"https://github.com/pirocheto.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003ch1 align=\"center\"\u003e\n        Phishing URL Detection\u003cbr\u003e\n        \u003cem style=\"font-size: 18px;color:grey\"\u003ewith\u003c/em\u003e\n        \u003cem style=\"font-size: 22px;color:grey\"\u003eMachine Learning\u003c/em\u003e\n    \u003c/h1\u003e\n\u003c/div\u003e\n\nThis repository contains the code for training a machine learning model for phishing URL detection.\nThe dataset used and the latest model are hosted on Hugging Face:\n\n- Dataset: https://huggingface.co/datasets/pirocheto/phishing-url\n- Model: https://huggingface.co/pirocheto/phishing-url-detection\n\n\u003e ℹ️ You can test the model on the demo page [here](https://pirocheto.github.io/phishing-url-detection/).\n\n## Consideration Regarding The Model\n\nThe model architecture consists of a TF-IDF (character n-grams + word n-grams) for vectorization and a linear SVM for classification.\n\n:white_check_mark: **Lightweight**: Easy to handle, you can embed it in your applications without the need for a remote server to host it.\n\n:white_check_mark: **Fast**: Your application will experience no additional latency due to model inferences.\n\n:white_check_mark: **Works Offline**: The use of URL tokens alone enables usage without an internet connection.\n\nOn the other hand, it could be less efficient than more complex models or those using external features.\n\n## Reproduce The Model\n\n```bash\n# 1. Clone the repository\ngit clone https://github.com/pirocheto/phishing-url-detection.git\n\n# 2. Go inside the project\ncd phishing-url-detection\n\n# 3. Install dependencies\npoetry install --no-root\n\n# 4. Run the pipeline\ndvc repro -s download_data\ndvc repro -s train\n```\n\nFor more details, see the pipeline in the [dvc.yaml](dvc.yaml) file.\n\n## Project Structure\n\n- `live`: Artifacts created during pipeline execution\n- `notebooks`: Contains the code for the exploration phase\n- `ressources`: Miscellaneous resources used by scripts\n- `tests`: Test files\n- `src`: Python scripts\n- `params.yaml`: Parameters for the DVC experiment\n- `dvc.yaml`: Pipeline to run the experiment and reproduce executions\n\n## Main Tools Used in This Project\n\n- [DVC](https://dvc.org/): Version data and experiments\n- [CML](https://cml.dev/): Post a comment to the pull request showing the metrics and parameters of an experiment\n- [Scikit-Learn](https://scikit-learn.org/stable/): Framework to train the model\n- [Optuna](https://optuna.readthedocs.io/en/stable/): Find the best hyperparameters for model\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpirocheto%2Fphishing-url-detection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpirocheto%2Fphishing-url-detection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpirocheto%2Fphishing-url-detection/lists"}