Skip to main content

User Intel | Golang SDK

Look up breached passwords

func (e *userIntel) PasswordBreached(ctx context.Context, input *UserPasswordBreachedRequest) (*pangea.PangeaResponse[UserPasswordBreachedResult], error)

Determine if a password has been exposed in a security breach using a 5 character prefix of the password hash.

required parameters

context.Context
input := &user_intel.UserPasswordBreachedRequest{
	HashType:   user_intel.HTsha265,
	HashPrefix: "5baa6",
	Raw:        true,
	Verbose:    true,
	Provider:   "spycloud",
}

out, err := userintel.PasswordBreached(ctx, input)

Look up breached passwords V2

func (e *userIntel) PasswordBreachedBulk(ctx context.Context, input *UserPasswordBreachedBulkRequest) (*pangea.PangeaResponse[UserPasswordBreachedBulkResult], error)

Determine if a password has been exposed in a security breach using a 5 character prefix of the password hash.

required parameters

context.Context
hashPrefixes := [...]string{"5baa6"}

input := &user_intel.UserPasswordBreachedBulkRequest{
	HashType:     user_intel.HTsha265,
	HashPrefixes: hashPrefixes,
	Raw:          true,
	Verbose:      true,
	Provider:     "spycloud",
}

out, err := userintel.PasswordBreachedBulk(ctx, input)

Look up breached users

func (e *userIntel) UserBreached(ctx context.Context, input *UserBreachedRequest) (*pangea.PangeaResponse[UserBreachedResult], error)

Determine if an email address, username, phone number, or IP address was exposed in a security breach.

required parameters

context.Context
input := &user_intel.UserBreachedRequest{
	PhoneNumber: "8005550123",
	Raw:         true,
	Verbose:     true,
	Provider:    "spycloud",
}

out, err := userintel.UserBreached(ctx, input)

Look up breached users V2

func (e *userIntel) UserBreachedBulk(ctx context.Context, input *UserBreachedBulkRequest) (*pangea.PangeaResponse[UserBreachedBulkResult], error)

Determine if an email address, username, phone number, or IP address was exposed in a security breach.

required parameters

context.Context
phoneNumbers := [...]string{"8005550123"}

input := &user_intel.UserBreachedBulkRequest{
	PhoneNumbers: phoneNumbers,
	Raw:          true,
	Verbose:      true,
	Provider:     "spycloud",
}

out, err := userintel.UserBreachedBulk(ctx, input)

Type Client

type Client interface

required parameters

func(ctx context.Context, req *UserBreachedRequest) (*pangea.PangeaResponse[UserBreachedResult], error)
context.Context
func(ctx context.Context, req *UserBreachedBulkRequest) (*pangea.PangeaResponse[UserBreachedBulkResult], error)
context.Context
func(ctx context.Context, req *UserPasswordBreachedRequest) (*pangea.PangeaResponse[UserPasswordBreachedResult], error)
context.Context
func(ctx context.Context, req *UserPasswordBreachedBulkRequest) (*pangea.PangeaResponse[UserPasswordBreachedBulkResult], error)
context.Context
pangea.BaseServicer

Base service methods

type Client interface {
	UserBreached(ctx context.Context, req *UserBreachedRequest) (*pangea.PangeaResponse[UserBreachedResult], error)
	UserBreachedBulk(ctx context.Context, req *UserBreachedBulkRequest) (*pangea.PangeaResponse[UserBreachedBulkResult], error)
	PasswordBreached(ctx context.Context, req *UserPasswordBreachedRequest) (*pangea.PangeaResponse[UserPasswordBreachedResult], error)
	PasswordBreachedBulk(ctx context.Context, req *UserPasswordBreachedBulkRequest) (*pangea.PangeaResponse[UserPasswordBreachedBulkResult], error)

	// Base service methods
	pangea.BaseServicer
}

Type HashType

type HashType string
type HashType string

Type PasswordStatus

type PasswordStatus int
type PasswordStatus int

Type UserBreachedBulkRequest

type UserBreachedBulkRequest struct

required parameters

pangea.BaseRequest

Base request has ConfigID for multi-config projects

[]string `json:"emails,omitempty"`
[]string `json:"usernames,omitempty"`
[]string `json:"phone_numbers,omitempty"`
[]string `json:"ips,omitempty"`
string `json:"start,omitempty"`
string `json:"end,omitempty"`
*bool `json:"verbose,omitempty"`
*bool `json:"raw,omitempty"`
string `json:"provider,omitempty"`
type UserBreachedBulkRequest struct {
	// Base request has ConfigID for multi-config projects
	pangea.BaseRequest

	Emails		[]string	`json:"emails,omitempty"`
	Usernames	[]string	`json:"usernames,omitempty"`
	PhoneNumbers	[]string	`json:"phone_numbers,omitempty"`
	IPs		[]string	`json:"ips,omitempty"`
	Start		string		`json:"start,omitempty"`
	End		string		`json:"end,omitempty"`
	Verbose		*bool		`json:"verbose,omitempty"`
	Raw		*bool		`json:"raw,omitempty"`
	Provider	string		`json:"provider,omitempty"`
}

Type UserBreachedBulkResult

type UserBreachedBulkResult struct

required parameters

map[string]UserBreachedData `json:"data"`
interface{} `json:"parameters,omitempty"`
interface{} `json:"raw_data,omitempty"`
type UserBreachedBulkResult struct {
	Data		map[string]UserBreachedData	`json:"data"`
	Parameters	interface{}			`json:"parameters,omitempty"`
	RawData		interface{}			`json:"raw_data,omitempty"`
}

Type UserBreachedData

type UserBreachedData struct

required parameters

bool `json:"found_in_breach"`
int `json:"breach_count,omitempty"`
type UserBreachedData struct {
	FoundInBreach	bool	`json:"found_in_breach"`
	BreachCount	int	`json:"breach_count,omitempty"`
}

Type UserBreachedRequest

type UserBreachedRequest struct

required parameters

pangea.BaseRequest

Base request has ConfigID for multi-config projects

string `json:"email,omitempty"`
string `json:"username,omitempty"`
string `json:"phone_number,omitempty"`
string `json:"ip,omitempty"`
string `json:"start,omitempty"`
string `json:"end,omitempty"`
*bool `json:"verbose,omitempty"`
*bool `json:"raw,omitempty"`
string `json:"provider,omitempty"`
type UserBreachedRequest struct {
	// Base request has ConfigID for multi-config projects
	pangea.BaseRequest

	Email		string	`json:"email,omitempty"`
	Username	string	`json:"username,omitempty"`
	PhoneNumber	string	`json:"phone_number,omitempty"`
	IP		string	`json:"ip,omitempty"`
	Start		string	`json:"start,omitempty"`
	End		string	`json:"end,omitempty"`
	Verbose		*bool	`json:"verbose,omitempty"`
	Raw		*bool	`json:"raw,omitempty"`
	Provider	string	`json:"provider,omitempty"`
}

Type UserBreachedResult

type UserBreachedResult struct

required parameters

UserBreachedData `json:"data"`
interface{} `json:"parameters,omitempty"`
interface{} `json:"raw_data,omitempty"`
type UserBreachedResult struct {
	Data		UserBreachedData	`json:"data"`
	Parameters	interface{}		`json:"parameters,omitempty"`
	RawData		interface{}		`json:"raw_data,omitempty"`
}

Type UserPasswordBreachedBulkRequest

type UserPasswordBreachedBulkRequest struct

required parameters

pangea.BaseRequest

Base request has ConfigID for multi-config projects

[]string `json:"hash_prefixes,omitempty"`
*bool `json:"verbose,omitempty"`
*bool `json:"raw,omitempty"`
string `json:"provider,omitempty"`
type UserPasswordBreachedBulkRequest struct {
	// Base request has ConfigID for multi-config projects
	pangea.BaseRequest

	HashType	HashType	`json:"hash_type,omitempty"`
	HashPrefixes	[]string	`json:"hash_prefixes,omitempty"`
	Verbose		*bool		`json:"verbose,omitempty"`
	Raw		*bool		`json:"raw,omitempty"`
	Provider	string		`json:"provider,omitempty"`
}

Type UserPasswordBreachedBulkResult

type UserPasswordBreachedBulkResult struct

required parameters

map[string]UserPasswordBreachedData `json:"data"`
map[string]any `json:"parameters,omitempty"`
map[string]any `json:"raw_data,omitempty"`
type UserPasswordBreachedBulkResult struct {
	Data		map[string]UserPasswordBreachedData	`json:"data"`
	Parameters	map[string]any				`json:"parameters,omitempty"`
	RawData		map[string]any				`json:"raw_data,omitempty"`
}

Type UserPasswordBreachedData

type UserPasswordBreachedData struct

required parameters

bool `json:"found_in_breach"`
int `json:"breach_count,omitempty"`
type UserPasswordBreachedData struct {
	FoundInBreach	bool	`json:"found_in_breach"`
	BreachCount	int	`json:"breach_count,omitempty"`
}

Type UserPasswordBreachedRequest

type UserPasswordBreachedRequest struct

required parameters

pangea.BaseRequest

Base request has ConfigID for multi-config projects

string `json:"hash_prefix,omitempty"`
*bool `json:"verbose,omitempty"`
*bool `json:"raw,omitempty"`
string `json:"provider,omitempty"`
type UserPasswordBreachedRequest struct {
	// Base request has ConfigID for multi-config projects
	pangea.BaseRequest

	HashType	HashType	`json:"hash_type,omitempty"`
	HashPrefix	string		`json:"hash_prefix,omitempty"`
	Verbose		*bool		`json:"verbose,omitempty"`
	Raw		*bool		`json:"raw,omitempty"`
	Provider	string		`json:"provider,omitempty"`
}

Type UserPasswordBreachedResult

type UserPasswordBreachedResult struct

required parameters

UserPasswordBreachedData `json:"data"`
map[string]any `json:"parameters,omitempty"`
map[string]any `json:"raw_data,omitempty"`
type UserPasswordBreachedResult struct {
	Data		UserPasswordBreachedData	`json:"data"`
	Parameters	map[string]any			`json:"parameters,omitempty"`
	RawData		map[string]any			`json:"raw_data,omitempty"`
}

Type userIntel

type userIntel struct
type userIntel struct {
	pangea.BaseService
}