CocoaPods trunk is moving to be read-only. Read more on the blog, there are 7 months to go.

FraudLinksDetectionKit 1.3.9

FraudLinksDetectionKit 1.3.9

Maintained by Rayat Khan.



  • By
  • Rayat Khan

FraudLinksDetectionKit

Version License Platform

Advanced fraud detection and phishing protection SDK for iOS applications. Powered by Adara AI Chat API.

Features

  • 🛡️ Real-time phishing detection
  • 🔗 URL and domain analysis
  • 📱 OTP classification and risk assessment
  • 🤖 AI-powered threat intelligence
  • 📊 Comprehensive risk scoring
  • 🔒 Privacy-focused (on-device + cloud hybrid)
  • ⚡ Fast malicious link detection

Requirements

  • iOS 13.0+
  • Swift 5.0+
  • Xcode 13.0+

Installation

CocoaPods

Add this to your Podfile:

pod 'FraudLinksDetectionKit'

Then run:

pod install

Swift Package Manager

Add the following to your Package.swift:

dependencies: [
    .package(url: "https://github.com/Rayatkhan690/FraudLinksDetectionKit.git", from: "1.0.0")
]

Or add it via Xcode:

  1. File > Add Packages
  2. Enter: https://github.com/Rayatkhan690/FraudLinksDetectionKit.git

Quick Start

1. Configure FraudLinksDetectionKit

import FraudLinksDetectionKit

// In AppDelegate or SceneDelegate
let config = FraudLinksDetectionKit.Configuration(
    apiKey: "your-api-key",
    isProduction: true  // false for dev environment
)
FraudLinksDetectionKit.shared.configure(with: config)

2. Analyze Text Content

// Analyze SMS or notification text
Task {
    do {
        let result = try await FraudLinksDetectionKit.shared.analyzeText(messageText)
        
        if result.riskLevel == .high {
            print("⚠️ High risk detected!")
            print("Risk Score: \(result.riskScore)/100")
            print("Indicators: \(result.indicators)")
        }
    } catch {
        print("Analysis error: \(error)")
    }
}

3. Analyze Specific URL

if let url = URL(string: "https://suspicious-link.com") {
    Task {
        let analysis = try await FraudLinksDetectionKit.shared.analyzeURL(url)
        print("Domain: \(analysis.domain)")
        print("Risk Score: \(analysis.riskScore)")
        print("Spoofed: \(analysis.isDomainSpoofed)")
    }
}

4. Check for OTP

let text = "Your bank verification code is 123456"
if let otp = FraudLinksDetectionKit.shared.detectOTP(in: text) {
    print("OTP: \(otp.code)")
    print("Category: \(otp.category.rawValue)")
}

API Endpoints

FraudLinksDetectionKit uses Adara AI Chat API:

  • Production: https://mcp.adarasdwan.com
  • Development: https://dev-mcp.adarasdwan.com

Risk Levels

  • Safe (0-30): No significant threats detected
  • Suspicious (30-60): Some indicators found, caution advised
  • High (60-100): Strong fraud indicators, high risk

Privacy

FraudLinksDetectionKit respects user privacy:

  • Local analysis performed on-device
  • Only suspicious URLs sent to API
  • No personal data collected
  • GDPR compliant

License

FraudLinksDetectionKit is available under the MIT license. See the LICENSE file for more info.

Author

Rayat Khan, [email protected]

Contributing

Contributions are welcome! Please feel free to submit pull requests.