refactor: reorganize OSINT types — genéricos a core, específicos en cybersecurity

Mueve tipos genéricos (Person, Organization, Location, Email, Phone, Document,
Domain, Event, SocialMedia) de cybersecurity a core. Mantiene en cybersecurity
solo los específicos de seguridad (CryptoWallet, IPAddress, Malware, Vulnerability).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-06 23:47:01 +02:00
parent 97a3c84625
commit 817ec9fc36
32 changed files with 171 additions and 171 deletions
@@ -1,7 +1,7 @@
package cybersecurity
package core
// OsintDocument represents a document or file of interest in an OSINT investigation.
type OsintDocument struct {
// Document represents a document or file of interest.
type Document struct {
Title string `json:"title"`
Format string `json:"format"`
Classification string `json:"classification"`
@@ -1,7 +1,7 @@
package cybersecurity
package core
// OsintDomain represents an internet domain tracked in an OSINT investigation.
type OsintDomain struct {
// Domain represents an internet domain.
type Domain struct {
FQDN string `json:"fqdn"`
Registrar string `json:"registrar"`
CreatedDate string `json:"created_date"`
@@ -1,7 +1,7 @@
package cybersecurity
package core
// OsintEmail represents an email address of interest in an OSINT investigation.
type OsintEmail struct {
// Email represents an email address of interest.
type Email struct {
Address string `json:"address"`
Provider string `json:"provider"`
Verified bool `json:"verified"`
@@ -1,7 +1,7 @@
package cybersecurity
package core
// OsintEvent represents a notable event or incident in an OSINT investigation.
type OsintEvent struct {
// Event represents a notable event or incident.
type Event struct {
EventType string `json:"event_type"`
Date string `json:"date"`
Location string `json:"location"`
@@ -1,7 +1,7 @@
package cybersecurity
package core
// OsintLocation represents a geographic location of interest in an OSINT investigation.
type OsintLocation struct {
// Location represents a geographic location of interest.
type Location struct {
Lat float64 `json:"lat"`
Lon float64 `json:"lon"`
Address string `json:"address"`
@@ -1,7 +1,7 @@
package cybersecurity
package core
// OsintOrganization represents a company or group of interest in an OSINT investigation.
type OsintOrganization struct {
// Organization represents a company or group of interest.
type Organization struct {
LegalName string `json:"legal_name"`
Country string `json:"country"`
Sector string `json:"sector"`
@@ -1,7 +1,7 @@
package cybersecurity
package core
// OsintPerson represents an individual of interest in an OSINT investigation.
type OsintPerson struct {
// Person represents an individual of interest.
type Person struct {
FullName string `json:"full_name"`
Alias []string `json:"alias"`
Nationality string `json:"nationality"`
@@ -1,7 +1,7 @@
package cybersecurity
package core
// OsintPhone represents a phone number of interest in an OSINT investigation.
type OsintPhone struct {
// Phone represents a phone number of interest.
type Phone struct {
Number string `json:"number"`
CountryCode string `json:"country_code"`
Carrier string `json:"carrier"`
+10
View File
@@ -0,0 +1,10 @@
package core
// SocialMedia represents a social media account of interest.
type SocialMedia struct {
Platform string `json:"platform"`
Username string `json:"username"`
URL string `json:"url"`
Followers int `json:"followers"`
Verified bool `json:"verified"`
}
@@ -1,7 +1,7 @@
package cybersecurity
// OsintCryptoWallet represents a cryptocurrency wallet tracked in an OSINT investigation.
type OsintCryptoWallet struct {
// CryptoWallet represents a cryptocurrency wallet tracked in an OSINT investigation.
type CryptoWallet struct {
Address string `json:"address"`
Blockchain string `json:"blockchain"`
Balance float64 `json:"balance"`
@@ -1,7 +1,7 @@
package cybersecurity
// OsintIPAddress represents an IP address of interest in an OSINT investigation.
type OsintIPAddress struct {
// IPAddress represents an IP address of interest in an OSINT investigation.
type IPAddress struct {
IP string `json:"ip"`
ASN string `json:"asn"`
Country string `json:"country"`
@@ -1,7 +1,7 @@
package cybersecurity
// OsintMalware represents a malware sample tracked in an OSINT investigation.
type OsintMalware struct {
// Malware represents a malware sample tracked in an OSINT investigation.
type Malware struct {
Family string `json:"family"`
HashSHA256 string `json:"hash_sha256"`
FirstSeen string `json:"first_seen"`
@@ -1,10 +0,0 @@
package cybersecurity
// OsintSocialMedia represents a social media account of interest in an OSINT investigation.
type OsintSocialMedia struct {
Platform string `json:"platform"`
Username string `json:"username"`
URL string `json:"url"`
Followers int `json:"followers"`
Verified bool `json:"verified"`
}
@@ -1,7 +1,7 @@
package cybersecurity
// OsintVulnerability represents a CVE or security vulnerability in an OSINT investigation.
type OsintVulnerability struct {
// Vulnerability represents a CVE or security vulnerability in an OSINT investigation.
type Vulnerability struct {
CVEID string `json:"cve_id"`
CVSS float64 `json:"cvss"`
AffectedProduct string `json:"affected_product"`