Skip to content

isaacmendelson/ASPS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

414 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

ASPS - Anti-Scam Protection System

Version: 0.0.0.4
Release Date: March 30, 2026


Overview

ASPS is a comprehensive anti-scam protection system that monitors user activity and protects against online fraud, phishing, and scam attempts.

Components

  • Backend - .NET 8 server with real-time analysis
  • WebApi - Admin dashboard and API endpoints
  • Agent - Windows desktop application
  • Extension - Chrome browser extension

Version 0.0.0.4 - Release Notes

πŸ†• New Features

Backend Architecture

  • SystemConfigurationChanged Event - Dynamic configuration updates across analyzers
  • AnalysisKey Field - Links DeviceAlerts to their analysis results for traceability
  • UDAnalysis Refactor - Separate handling for UrlAlert vs TrackUrlAlert

Admin Dashboard (ASPS-392)

  • TrackUrlAlert Tooltip - URL column now shows: Url, From Url, Time on page
  • Cross-browser Tooltip Fix - Using 
 for proper newline display

Authentication & Authorization

  • ClaimsTransformer - Dynamic Admin role assignment from Keycloak groups
  • User Menu - Added logout functionality with proper authorization
  • Debug Claims Page - View Keycloak claims for troubleshooting

Extension

  • Icon Color Fix - Resolved conflicting subscribe causing icon not to update

πŸ› Bug Fixes

  • Fixed UrlAlert vs TrackUrlAlert routing in UDAnalysis
  • Fixed device search null reference (MAC can be null)
  • Fixed JSON deserialization for Priority enum in Simulations
  • Fixed user lookup for dev login

πŸ§ͺ Testing

  • Split UDAnalysisTests.cs into 3 separate test files for better organization
  • Added Configuration mock setup for LoadConfiguration support
  • All 16 UDAnalysis tests passing

Version 0.0.0.3 - Previous Release

πŸ†• Features

User Layer (ASPS-258)

  • UserRiskProfile - Real-time risk scoring per user
  • Risk Score Calculation - Weighted formula with time decay
  • OTP Interception Detection - Detects when scammers intercept 2FA codes
  • Black Screen - Hides sensitive info when remote access detected on bank sites
  • UserIsTargetedAlert - Alerts when user appears on darknet scam lists
  • SetTrackedDomains Event - Cross-platform domain synchronization
  • Protective Actions Matrix - Risk-based response system (warn/block/lock)
  • Sensitive Sites Configuration - Configurable list of sensitive domains

Device Layer (ASPS-374)

  • TrackUrlAnalyzer enhancements (Bait Detection, Form Detection, Urgency Indicators)
  • Site Category Detection - Classifies websites by type (Banking, Crypto, etc.)
  • Phishing Detection Logic - Domain similarity, SSL checks, content analysis

Extension

  • FormMonitorService - Detects and tracks form submissions
  • Warning Banner - Non-blocking warning for suspicious sites
  • Block Page - Full-page block for high-risk sites
  • TrackUrlAlert - Complete implementation

Admin Dashboard

  • Simulations - Device alert simulator with autocomplete
  • BlacklistedPhoneNumbers - Admin page for managing blocked numbers
  • BankWebsites - Admin page for sensitive bank domains
  • KnownPhishingWebsites - Admin page improvements

Agent

  • Windows Toast Notifications - Risk-based alerts with actions
  • Installer - Inno Setup installer ready for distribution

πŸ› Bug Fixes

  • Fixed CQRSGateway routing for Simulation queries
  • Fixed version sync between components
  • Fixed ASPS-74 TrackUrlAlert completion

πŸ§ͺ Testing

  • 220+ new unit tests for User Layer
  • 52 new tests for Agent
  • 15 new tests for Simulations API
  • FormMonitorService tests

πŸ“Š Statistics

  • Tasks Completed: 25+
  • New Files: 50+
  • New Tests: 300+

Version 0.0.0.2 - Earlier Release

Features

  • Version control across all components
  • Remote access monitoring (TeamViewer, VNC, Chrome Remote Desktop, AnyDesk)
  • TrackUrlAlert infrastructure
  • Admin Simulations (basic)
  • GeoIP lookup for remote IPs
  • File transfer detection

Installation

Backend

cd ASPSBackend14_J
dotnet restore
dotnet build
dotnet run --project ASPSBackend

WebApi

cd ASPSBackend14_J
dotnet run --project WebApi

Agent (Windows)

  1. Download AntiScamDesktop-Setup-0.0.0.3.exe
  2. Run installer
  3. Follow setup wizard

Extension (Chrome)

  1. Open chrome://extensions
  2. Enable Developer Mode
  3. Load unpacked from apps/extension/chrome/

Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                      User Devices                        β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚   Agent     β”‚  β”‚  Extension  β”‚  β”‚   Mobile App    β”‚  β”‚
β”‚  β”‚  (Windows)  β”‚  β”‚  (Chrome)   β”‚  β”‚   (Future)      β”‚  β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
          β”‚                β”‚                  β”‚
          β–Ό                β–Ό                  β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                    ASPS Backend                          β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”‚
β”‚  β”‚              Real-time Analysis                  β”‚    β”‚
β”‚  β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚    β”‚
β”‚  β”‚  β”‚  Device   β”‚ β”‚   User    β”‚ β”‚  Intelligence β”‚  β”‚    β”‚
β”‚  β”‚  β”‚  Layer    β”‚ β”‚   Layer   β”‚ β”‚    Layer      β”‚  β”‚    β”‚
β”‚  β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚    β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β”‚
β”‚                          β”‚                               β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”      β”‚
β”‚  β”‚              Protective Actions                β”‚      β”‚
β”‚  β”‚  (Warn β†’ Block β†’ Lock β†’ Emergency Contact)     β”‚      β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Risk Score Calculation

FinalRiskScore = min(100, (BaseRisk + Ξ£ WeightedFactors) Γ— TimeDecay + ActiveThreats)

Where:
- BaseRisk = 0.3 Γ— VulnerabilityScore + 0.4 Γ— ExposureScore
- WeightedFactors: RiskyUrl(1.0), SuspiciousCall(1.5), RemoteAccess(2.0), ScamInProgress(3.0)
- TimeDecay = 0.95^days

Protective Actions by Risk Score

Risk Score Actions
0-20 Monitor only
21-40 Warning banner
41-60 Modal warning + Push notification
61-80 Block page + SMS alert
81-100 Full lock + Emergency contact

License

Proprietary - All rights reserved.


Contact

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors