Skip to content

Self-hosted OSINT exposure checker — is your email, username, phone or password leaked? Keyless sources: breaches, infostealer logs, COMB credentials, HIBP k-anonymity, 200-platform username grid. Docker one-command install, no API keys, no AI, Apache-2.0.

1.4 KB
Raw Blame
<?php

declare(strict_types=1);

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * One Exposure Check audit row (Community Edition).
 *
 * PRIVACY CONTRACT:
 *   - identifier_hash : salted SHA-256 (app key + type + identifier) - the raw
 *     identifier is NEVER stored here.
 *   - identifier_masked : display-safe masked form (j***[email protected]).
 *   - results : per-source aggregated results (no credential material -
 *     ProxyNova lines are stripped at the source-adapter level BEFORE
 *     anything reaches this table).
 *
 * @property int $id
 * @property string $type
 * @property string $identifier_masked
 * @property int $total_sources
 * @property int $hits
 * @property int $exposure_score
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 *
 * @method static self create(array $attributes = [])
 */
class ExposureCheck extends Model
{
    protected $table = 'exposure_checks';

    protected $fillable = [
        'type',
        'identifier_hash',
        'identifier_masked',
        'total_sources',
        'hits',
        'exposure_score',
        'results',
    ];

    protected $casts = [
        'results' => 'array',
        'exposure_score' => 'integer',
        'total_sources' => 'integer',
        'hits' => 'integer',
        'created_at' => 'datetime',
        'updated_at' => 'datetime',
    ];
}