Skip to content

A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.

feat: db-refactor

dextmorgnea50c8a346cb
diff --git a/flowsint-api/Dockerfile b/flowsint-api/Dockerfile
index e5b58a3a..87a348d0 100644
--- a/flowsint-api/Dockerfile
+++ b/flowsint-api/Dockerfile
@@ -1,10 +1,13 @@
FROM python:3.10
WORKDIR /app
+
COPY . .
RUN pip install --no-cache-dir -r requirements.txt
+RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
+
EXPOSE 5000
ENTRYPOINT ["/app/entrypoint.sh"]
diff --git a/flowsint-api/app/core/celery.py b/flowsint-api/app/core/celery.py
index d7517d43..aeb9c81a 100644
--- a/flowsint-api/app/core/celery.py
+++ b/flowsint-api/app/core/celery.py
@@ -4,5 +4,5 @@ celery_app = Celery(
"flowsint",
broker="redis://redis:6379/0",
backend="redis://redis:6379/0",
- include=["app.tasks.email_scanner"]
+ include=["app.tasks.email_scanner", "app.tasks.username_scanner"]
)
\ No newline at end of file
diff --git a/flowsint-api/app/main.py b/flowsint-api/app/main.py
index d765cc43..07062d5d 100644
--- a/flowsint-api/app/main.py
+++ b/flowsint-api/app/main.py
@@ -9,13 +9,17 @@ app = FastAPI()
class EmailScanItem(BaseModel):
email: str
sketch_id:str
+
+class UsernameScanItem(BaseModel):
+ username: str
+ sketch_id:str
[email protected]("/scan/email")
async def scan(item: EmailScanItem, db: Client = Depends(get_db)):
task_name = "email_scan"
- task = celery_app.send_task(task_name, args=[item.email])
assert item.email is not None
assert item.sketch_id is not None
+ task = celery_app.send_task(task_name, args=[item.email])
try:
response = db.table("scans").insert({
"id": task.id,
@@ -28,6 +32,26 @@ async def scan(item: EmailScanItem, db: Client = Depends(get_db)):
except Exception as e:
raise HTTPException(status_code=500, detail=f"Server error: {str(e)}")
+
[email protected]("/scan/username")
+async def scan(item: UsernameScanItem, db: Client = Depends(get_db)):
+ task_name = "username_scan"
+ assert item.username is not None
+ assert item.sketch_id is not None
+ task = celery_app.send_task(task_name, args=[item.username])
+ try:
+ response = db.table("scans").insert({
+ "id": task.id,
+ "status": "pending",
+ "scan_name": task_name,
+ "value":item.username,
+ "sketch_id": item.sketch_id
+ }).execute()
+ return {"id": task.id, "response": response}
+ except Exception as e:
+ raise HTTPException(status_code=500, detail=f"Server error: {str(e)}")
+
+
@app.get("/health")
async def health():
return {"status": "ok"}
diff --git a/flowsint-api/app/tasks/username_scanner.py b/flowsint-api/app/tasks/username_scanner.py
new file mode 100644
index 00000000..471e033b
--- /dev/null
+++ b/flowsint-api/app/tasks/username_scanner.py
@@ -0,0 +1,38 @@
+from app.core.db import get_db
+from app.core.celery import celery_app
+import asyncio
+import traceback
+from celery import states
+from app.workers.username_scanner import perform_sherlock_research
+
+@celery_app.task(name="username_scan", bind=True)
+def username_scan(self, username: str):
+ db = get_db()
+ try:
+ results = asyncio.run(perform_sherlock_research(username))
+
+ status = "finished" if "error" not in results else "error"
+ db.table("scans").update({
+ "status": status,
+ "results": results
+ }).eq("id", self.request.id).execute()
+
+ return {"result": results}
+
+ except Exception as ex:
+ error_logs = traceback.format_exc().split("\n")
+ print(f"Error in task: {error_logs}")
+
+ db.table("scans").update({
+ "status": "error",
+ "results": {"error": error_logs}
+ }).eq("id", self.request.id).execute()
+
+ self.update_state(
+ state=states.FAILURE,
+ meta={
+ "exc_type": type(ex).__name__,
+ "exc_message": error_logs,
+ },
+ )
+ raise ex
diff --git a/flowsint-api/app/workers/username_scanner.py b/flowsint-api/app/workers/username_scanner.py
new file mode 100644
index 00000000..12e82354
--- /dev/null
+++ b/flowsint-api/app/workers/username_scanner.py
@@ -0,0 +1,39 @@
+import subprocess
+import uuid
+from pathlib import Path
+
+def perform_sherlock_research(username: str) -> dict:
+ report_id = str(uuid.uuid4())
+ output_file = Path(f"/tmp/sherlock_{report_id}.txt")
+
+ try:
+ result = subprocess.run(
+ ["sherlock", username, "-o", str(output_file)],
+ capture_output=True,
+ text=True,
+ )
+
+ if result.returncode != 0:
+ raise RuntimeError(f"Sherlock failed:\n{result.stderr.strip()}")
+
+ if not output_file.exists():
+ raise RuntimeError("Sherlock did not produce any output file.")
+
+ found_accounts = {}
+ with open(output_file, "r") as f:
+ for line in f:
+ line = line.strip()
+ if line and line.startswith("http"):
+ platform = line.split("/")[2] # Extract domain name as platform
+ found_accounts[platform] = line
+
+ return {
+ "username": username,
+ "report_id": report_id,
+ "found": found_accounts
+ }
+
+ except subprocess.TimeoutExpired:
+ raise TimeoutError("Sherlock scan timed out.")
+ except Exception as e:
+ raise RuntimeError(f"Unexpected error in Sherlock scan: {str(e)}")
diff --git a/flowsint-api/requirements.txt b/flowsint-api/requirements.txt
index 2ef2b37e..2f1cfecb 100644
--- a/flowsint-api/requirements.txt
+++ b/flowsint-api/requirements.txt
@@ -5,4 +5,5 @@ celery==5.3.6
redis==5.0.1
holehe
dotenv
-uvicorn
\ No newline at end of file
+uvicorn
+sherlock_project
\ No newline at end of file
diff --git a/flowsint-web/src/app/api/investigations/[investigation_id]/route.ts b/flowsint-web/src/app/api/investigations/[investigation_id]/route.ts
index 80ae73b5..10b3d67f 100644
--- a/flowsint-web/src/app/api/investigations/[investigation_id]/route.ts
+++ b/flowsint-web/src/app/api/investigations/[investigation_id]/route.ts
@@ -13,7 +13,7 @@ export async function GET(_: Request, { params }: { params: Promise<{ investigat
return NextResponse.json({ error: "Unauthorized" }, { status: 401 })
}
const { data: investigation, error } = await supabase.from("investigations")
- .select("*, members:investigations_profiles(profile:profiles(id, first_name, last_name), role), sketches(*, members:sketches_profiles(profile:profiles(id, first_name, last_name), role), individuals(id)), owner_id")
+ .select("*, members:investigations_profiles(profile:profiles(id, first_name, last_name, avatar_url), role), sketches(*, members:sketches_profiles(profile:profiles(id, first_name, last_name, avatar_url), role), individuals(id)), owner_id")
.eq("id", investigation_id)
.single()
if (error) {
diff --git a/flowsint-web/src/app/api/investigations/[investigation_id]/sketches/[sketch_id]/route.ts b/flowsint-web/src/app/api/investigations/[investigation_id]/sketches/[sketch_id]/route.ts
index 24749f8c..5cd87bd6 100644
--- a/flowsint-web/src/app/api/investigations/[investigation_id]/sketches/[sketch_id]/route.ts
+++ b/flowsint-web/src/app/api/investigations/[investigation_id]/sketches/[sketch_id]/route.ts
@@ -14,7 +14,7 @@ export async function GET(_: Request, { params }: { params: Promise<{ sketch_id:
}
const { data: sketch, error } = await supabase
.from("sketches")
- .select("id, title, description, last_updated_at, investigation_id, investigation:investigations(id, name), members:sketches_profiles(profile:profiles(id, first_name, last_name), role)")
+ .select("id, title, description, last_updated_at, investigation_id, investigation:investigations(id, name), members:sketches_profiles(profile:profiles(id, first_name, last_name, avatar_url), role)")
.eq("id", sketch_id)
.eq("investigation_id", investigation_id)
.single()
diff --git a/flowsint-web/src/app/api/investigations/[investigation_id]/sketches/route.ts b/flowsint-web/src/app/api/investigations/[investigation_id]/sketches/route.ts
index 786ede73..07e1394e 100644
--- a/flowsint-web/src/app/api/investigations/[investigation_id]/sketches/route.ts
+++ b/flowsint-web/src/app/api/investigations/[investigation_id]/sketches/route.ts
@@ -13,7 +13,7 @@ export async function GET(_: Request, { params }: { params: Promise<{ investigat
return NextResponse.json({ error: "Unauthorized" }, { status: 401 })
}
const { data: sketches, error } = await supabase.from("sketches")
- .select("id, title, description, status, owner_id, investigation_id, last_updated_at, investigation:investigations(id, name), members:sketches_profiles(profile:profiles(id, first_name, last_name), role)")
+ .select("id, title, description, status, owner_id, investigation_id, last_updated_at, investigation:investigations(id, name), members:sketches_profiles(profile:profiles(id, first_name, last_name, avatar_url), role)")
.order("last_updated_at", { ascending: false })
.eq("investigation_id", investigation_id)
if (error) {
diff --git a/flowsint-web/src/app/api/investigations/route.ts b/flowsint-web/src/app/api/investigations/route.ts
index e54fca2b..ab2cad53 100644
--- a/flowsint-web/src/app/api/investigations/route.ts
+++ b/flowsint-web/src/app/api/investigations/route.ts
@@ -12,7 +12,7 @@ export async function GET() {
return NextResponse.json({ error: "Unauthorized" }, { status: 401 })
}
const { data: investigations, error } = await supabase.from("investigations")
- .select("*, sketches(*), status, owner_id, members:investigations_profiles(profile:profiles(id, first_name, last_name), role)")
+ .select("*, sketches(*), status, owner_id, members:investigations_profiles(profile:profiles(id, first_name, last_name, avatar_url), role)")
if (error) {
return NextResponse.json({ error: error.message }, { status: 500 })
}
diff --git a/flowsint-web/src/app/api/latest-sketches/route.ts b/flowsint-web/src/app/api/latest-sketches/route.ts
index 3afc0cda..3cbb85bb 100644
--- a/flowsint-web/src/app/api/latest-sketches/route.ts
+++ b/flowsint-web/src/app/api/latest-sketches/route.ts
@@ -1,9 +1,10 @@
import { createClient } from "@/lib/supabase/server"
-import { NextResponse } from "next/server"
+import { NextRequest, NextResponse } from "next/server"
-export async function GET() {
+export async function GET(request: NextRequest) {
try {
const supabase = await createClient()
+ let limit = request.nextUrl.searchParams.get("limit") || "4"
const {
data: { user },
error: userError,
@@ -12,9 +13,9 @@ export async function GET() {
return NextResponse.json({ error: "Unauthorized" }, { status: 401 })
}
const { data: sketches, error } = await supabase.from("sketches")
- .select("id, title, owner_id, description, last_updated_at, investigation_id, investigation:investigations(id, name), members:sketches_profiles(profile:profiles(id, first_name, last_name), role)")
+ .select("id, title, owner_id, description, last_updated_at, investigation_id, investigation:investigations(id, name), members:sketches_profiles(profile:profiles(id, first_name, last_name, avatar_url), role)")
.order("last_updated_at", { ascending: false })
- .limit(4)
+ .limit(parseInt(limit))
if (error) {
return NextResponse.json({ error: error.message }, { status: 500 })
}
diff --git a/flowsint-web/src/app/dashboard/investigations/[investigation_id]/page.tsx b/flowsint-web/src/app/dashboard/investigations/[investigation_id]/page.tsx
index b309ab6c..589ef2b9 100644
--- a/flowsint-web/src/app/dashboard/investigations/[investigation_id]/page.tsx
+++ b/flowsint-web/src/app/dashboard/investigations/[investigation_id]/page.tsx
@@ -19,6 +19,8 @@ import { InvestigationNavigation } from "@/components/investigations/investigati
import { Card } from "@/components/ui/card"
import { AvatarList } from "@/components/avatar-list"
import { SectionCards } from "@/components/investigations/section-cards"
+import { Profile } from "@/types"
+import { Skeleton } from "@/components/ui/skeleton"
const DashboardPage = () => {
const { investigation_id } = useParams()
@@ -66,21 +68,36 @@ const DashboardPage = () => {
<div className="w-full space-y-8 container mx-auto py-12 px-8">
<div className="flex items-center justify-between">
<div>
- <h1 className="font-semibold text-2xl">{investigation?.name}</h1>
- <p>{investigation?.description}</p>
+ {isLoading ?
+ <>
+ <Skeleton className="font-semibold h-8 w-full w-72 rounded-lg" />
+ <Skeleton className="font-semibold mt-3 h-4 w-full w-102 rounded-lg" />
+ </> :
+ <> <h1 className="font-semibold text-2xl">{investigation?.name}</h1>
+ <p className="opacity-60 mt-3">{investigation?.description ?? <span className="italic">No description provided.</span>}</p>
+ </>
+ }
</div>
<div>
- <AvatarList size="lg" users={investigation?.members?.map(({ profile }: { profile: { first_name: string, last_name: string, id: string } }) => ({ id: profile.id, name: `${profile.first_name} ${profile.last_name}`, owner: profile.id === investigation.owner_id })) || []} />
+ <AvatarList
+ size="lg"
+ users={
+ investigation?.members?.map((member: { profile: Profile }) => ({
+ ...member.profile,
+ owner: member.profile.id === investigation.owner_id,
+ })) || []
+ }
+ />
</div>
</div>
<SectionCards />
<div className="flex items-center gap-2 justify-between mb-6">
<div className="relative w-full max-w-md">
- <Search className="absolute left-2.5 top-2.5 h-4 w-4 bg-background text-muted-foreground" />
+ <Search className="absolute left-2.5 top-2.5 h-4 w-4 bg-card text-muted-foreground" />
<Input
type="search"
placeholder="Search items..."
- className="pl-8 w-full bg-background"
+ className="pl-8 w-full bg-card"
value={searchQuery}
onChange={(e) => setSearchQuery(e.target.value)}
/>
@@ -149,7 +166,7 @@ const DashboardPage = () => {
investigation?.sketches?.map((sketch: Sketch) => (
<TableRow key={sketch.id}>
<TableCell>
- <Link href={`/dashboard/investigations/${sketch.investigation_id}/sketches/${sketch.id}`} className="flex items-center gap-2 hover:underline">
+ <Link href={`/dashboard/investigations/${sketch.investigation_id}/sketches/${sketch.id}`} className="flex items-center gap-2 hover:underline font-medium">
<Waypoints className="h-5 w-5 text-muted-foreground opacity-60" />
<span>{sketch.title}</span>
</Link>
@@ -159,8 +176,15 @@ const DashboardPage = () => {
{(sketch?.individuals?.length || 0) > 0 ? `${sketch?.individuals?.length} items` : "Empty"}
</TableCell>
<TableCell className="hidden sm:table-cell text-muted-foreground">
- <AvatarList users={sketch?.members?.map(({ profile }: { profile: { first_name: string, last_name: string, id: string } }) => ({ id: profile.id, name: `${profile.first_name} ${profile.last_name}`, owner: profile.id === sketch.owner_id })) || []} size="sm" />
- </TableCell>
+ <AvatarList
+ size="md"
+ users={
+ sketch?.members?.map(member => ({
+ ...member.profile,
+ owner: member.profile.id === investigation.owner_id,
+ })) || []
+ }
+ /> </TableCell>
<TableCell className="hidden sm:table-cell text-muted-foreground">
{formatDistanceToNow(new Date(sketch.last_updated_at), { addSuffix: true })}
</TableCell>
diff --git a/flowsint-web/src/app/dashboard/investigations/[investigation_id]/sketches/[sketch_id]/layout.tsx b/flowsint-web/src/app/dashboard/investigations/[investigation_id]/sketches/[sketch_id]/layout.tsx
index 13497c29..469de731 100644
--- a/flowsint-web/src/app/dashboard/investigations/[investigation_id]/sketches/[sketch_id]/layout.tsx
+++ b/flowsint-web/src/app/dashboard/investigations/[investigation_id]/sketches/[sketch_id]/layout.tsx
@@ -17,7 +17,7 @@ const DashboardLayout = async ({
if (userError || !data?.user) {
redirect('/login')
}
- const { data: sketch, error } = await supabase.from("sketches").select("id, owner_id, members:sketches_profiles(profile:profiles(id, first_name, last_name), role)").eq("id", sketch_id).single()
+ const { data: sketch, error } = await supabase.from("sketches").select("*, members:sketches_profiles(profile:profiles(id, first_name, last_name, avatar_url), role)").eq("id", sketch_id).single()
if (!sketch || error) {
return notFound()
}
diff --git a/flowsint-web/src/app/dashboard/investigations/[investigation_id]/sketches/[sketch_id]/table/data-table.tsx b/flowsint-web/src/app/dashboard/investigations/[investigation_id]/sketches/[sketch_id]/table/data-table.tsx
index 67512a3c..9e778845 100644
--- a/flowsint-web/src/app/dashboard/investigations/[investigation_id]/sketches/[sketch_id]/table/data-table.tsx
+++ b/flowsint-web/src/app/dashboard/investigations/[investigation_id]/sketches/[sketch_id]/table/data-table.tsx
@@ -370,7 +370,7 @@ export function DataTable({
</Label>
<Select defaultValue="outline">
<SelectTrigger
- className="@4xl/main:hidden bg-background flex w-fit"
+ className="@4xl/main:hidden bg-card flex w-fit"
id="view-selector"
>
<SelectValue placeholder="Select a view" />
@@ -451,7 +451,7 @@ export function DataTable({
value="outline"
className="relative flex flex-col gap-4 overflow-auto px-4 lg:px-6"
>
- <Card className="overflow-hidden rounded-lg bg-background border shadow-xs">
+ <Card className="overflow-hidden rounded-lg bg-card border shadow-xs">
<DndContext
collisionDetection={closestCenter}
modifiers={[restrictToVerticalAxis]}
diff --git a/flowsint-web/src/app/dashboard/page.tsx b/flowsint-web/src/app/dashboard/page.tsx
index e096e6af..08bec188 100644
--- a/flowsint-web/src/app/dashboard/page.tsx
+++ b/flowsint-web/src/app/dashboard/page.tsx
@@ -19,7 +19,7 @@ import { cn } from "@/lib/utils"
import { SubNav } from "@/components/dashboard/sub-nav"
import { Card } from "@/components/ui/card"
import StatusBadge from "@/components/investigations/status-badge"
-
+import { Profile } from "@/types"
const DashboardPage = () => {
const [searchQuery, setSearchQuery] = useState("")
const [viewMode, setViewMode] = useState<"grid" | "list">("grid")
@@ -106,7 +106,7 @@ const DashboardPage = () => {
</div>
</div>
<div>
- <RecentSketches />
+ <RecentSketches limit={4} />
</div>
<div className="flex items-center gap-2 justify-between mb-6">
<div className="flex items-center gap-2">
@@ -167,7 +167,7 @@ const DashboardPage = () => {
filteredInvestigations.map((investigation: Investigation) => (
<TableRow key={investigation.id}>
<TableCell>
- <Link href={`dashboard/investigations/${investigation.id}`} className="flex items-center gap-2 hover:underline">
+ <Link href={`dashboard/investigations/${investigation.id}`} className="flex items-center gap-2 hover:underline font-medium">
<FolderLockIcon className="h-5 w-5 text-muted-foreground opacity-60" />
<span>{investigation.name}</span>
</Link>
@@ -182,7 +182,15 @@ const DashboardPage = () => {
{formatDistanceToNow(new Date(investigation.last_updated_at), { addSuffix: true })}
</TableCell>
<TableCell className="hidden sm:table-cell text-muted-foreground">
- <AvatarList users={investigation?.members?.map(({ profile }: { profile: { first_name: string, last_name: string, id: string } }) => ({ id: profile.id, name: `${profile.first_name} ${profile.last_name}`, owner: profile.id === investigation.owner_id })) || []} size="sm" />
+ <AvatarList
+ size="md"
+ users={
+ investigation?.members?.map(member => ({
+ ...member.profile,
+ owner: member.profile.id === investigation.owner_id,
+ })) || []
+ }
+ />
</TableCell>
<TableCell className="hidden sm:table-cell text-muted-foreground">
{format(new Date(investigation.created_at), "dd.MM.yyyy")}
diff --git a/flowsint-web/src/components/avatar-list.tsx b/flowsint-web/src/components/avatar-list.tsx
index b1c7a4a3..f5847c62 100644
--- a/flowsint-web/src/components/avatar-list.tsx
+++ b/flowsint-web/src/components/avatar-list.tsx
@@ -4,18 +4,10 @@ import type * as React from "react"
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip"
import { cn, getAvatarColor } from "@/lib/utils"
-import { CrownIcon } from "lucide-react"
import { getInitials } from "@/lib/utils"
-export interface User {
- id: string
- name: string
- email?: string
- image?: string
- owner?: boolean
-}
-
+import { Profile } from '@/types/index'
interface AvatarListProps extends React.HTMLAttributes<HTMLDivElement> {
- users: User[]
+ users: (Profile & { owner: boolean })[]
/** Maximum number of avatars to display before showing the count */
maxCount?: number
/** Size of the avatars in pixels */
@@ -32,6 +24,7 @@ export function AvatarList({
className,
...props
}: AvatarListProps) {
+
const visibleUsers = users.slice(0, maxCount)
const remainingCount = Math.max(0, users.length - maxCount)
@@ -44,40 +37,40 @@ export function AvatarList({
md: {
avatar: "h-7 w-7",
container: "space-x-[-11px]",
- more: "h-8 w-8 text-sm",
+ more: "h-7 w-7 text-sm",
},
lg: {
avatar: "h-8 w-8",
container: "space-x-[-10px]",
- more: "h-10 w-10 text-base",
+ more: "h-8 w-8 text-base",
},
}
- const renderAvatar = (user: User) => {
- const avatarColor = getAvatarColor(user.name)
+ const renderAvatar = (profile: Profile & { owner: boolean }) => {
+ const name = `${profile.first_name ?? "J"} ${profile.last_name ?? "J"}`
+ const avatarColor = getAvatarColor(name)
const avatar = (
<div className="relative">
<Avatar
- key={user.id}
+ key={profile.id}
className={cn(
sizeClasses[size].avatar,
- "border-2 border-background bg-background relative",
+ "border-2 border-card bg-background relative",
"transition-transform",
"ring-0 ring-offset-0",
)}
>
- <AvatarImage src={user.image} alt={`${user.name}'s avatar`} />
- <AvatarFallback className={cn("text-xs text-white", avatarColor)}>{getInitials(user.name)}</AvatarFallback>
+ <AvatarImage src={profile.avatar_url} alt={`${name}'s avatar`} />
+ <AvatarFallback className={cn("text-xs", "bg-muted")}>{getInitials(name)}</AvatarFallback>
</Avatar>
- {/* {user?.owner && <span className="block z-50 absolute -top-2 left-1/2 -translate-x-1/2"><CrownIcon fill="yellow" className="h-3 w-3 text-yellow-500 opacity-70" /></span>} */}
</div>
)
if (showTooltips) {
return (
- <TooltipProvider key={user.id} delayDuration={300}>
+ <TooltipProvider key={profile.id} delayDuration={300}>
<Tooltip>
<TooltipTrigger asChild>{avatar}</TooltipTrigger>
<TooltipContent side="bottom" align="center" className="shadow">
- {user.name} {user.owner && `(owner)`}
+ {name} {profile.owner && `(owner)`}
</TooltipContent>
</Tooltip>
</TooltipProvider>
@@ -90,7 +83,6 @@ export function AvatarList({
return (
<div className={cn("flex items-center", sizeClasses[size].container, className)} {...props}>
{visibleUsers.map(renderAvatar)}
-
{remainingCount > 0 && (
<TooltipProvider delayDuration={300}>
<Tooltip>
diff --git a/flowsint-web/src/components/dashboard/recent-sketches.tsx b/flowsint-web/src/components/dashboard/recent-sketches.tsx
index b9b7e6e2..07a8fb35 100644
--- a/flowsint-web/src/components/dashboard/recent-sketches.tsx
+++ b/flowsint-web/src/components/dashboard/recent-sketches.tsx
@@ -10,7 +10,7 @@ import { Skeleton } from "@/components/ui/skeleton"
import { formatDistanceToNow } from "date-fns"
import { AvatarList } from "../avatar-list"
-const RecentSketches = () => {
+const RecentSketches = ({ limit = 4 }: { limit: string | number }) => {
const {
data: sketches,
@@ -19,7 +19,7 @@ const RecentSketches = () => {
} = useQuery({
queryKey: ["dashboard", "sketches"],
queryFn: async () => {
- const res = await fetch(`/api/latest-sketches`)
+ const res = await fetch(`/api/latest-sketches?limit=${limit}`)
return res.json()
},
refetchOnWindowFocus: true,
@@ -79,8 +79,15 @@ const RecentSketches = () => {
</div>
<div className="flex items-center justify-between gap-2">
<span className="text-xs block truncate text-ellipsis opacity-60">Last updated {formatDistanceToNow(sketch.last_updated_at, { addSuffix: true })}</span>
- <AvatarList users={sketch?.members?.map(({ profile }: { profile: { first_name: string, last_name: string, id: string } }) => ({ id: profile.id, name: `${profile.first_name} ${profile.last_name}`, owner: profile.id === sketch.owner_id })) || []} size="sm" />
- </div>
+ <AvatarList
+ size="md"
+ users={
+ sketch?.members?.map(member => ({
+ ...member.profile,
+ owner: member.profile.id === sketch.owner_id,
+ })) || []
+ }
+ /> </div>
</CardContent>
</Card>
</Link>
diff --git a/flowsint-web/src/components/investigations/documents-list.tsx b/flowsint-web/src/components/investigations/documents-list.tsx
index f9ed1911..ffc5f798 100644
--- a/flowsint-web/src/components/investigations/documents-list.tsx
+++ b/flowsint-web/src/components/investigations/documents-list.tsx
@@ -116,10 +116,11 @@ export function DocumentList({ documents, isLoading, refetch }: { documents: any
<TableCell className="text-muted-foreground">
{doc.type.split("/")[1]?.toUpperCase() || doc.type}
</TableCell>
- <TableCell className="text-muted-foreground">{`${doc.owner.first_name} ${doc.owner.last_name}`}</TableCell>
<TableCell className="hidden md:table-cell text-muted-foreground">
{doc.size}
</TableCell>
+ <TableCell className="text-muted-foreground">{`${doc.owner.first_name} ${doc.owner.last_name}`}</TableCell>
+
<TableCell className="hidden sm:table-cell text-muted-foreground">
{formatDistanceToNow(new Date(doc.last_updated_at), { addSuffix: true })}
</TableCell>
diff --git a/flowsint-web/src/components/investigations/investigation-navigation.tsx b/flowsint-web/src/components/investigations/investigation-navigation.tsx
index ee0ff5ac..4587ee77 100644
--- a/flowsint-web/src/components/investigations/investigation-navigation.tsx
+++ b/flowsint-web/src/components/investigations/investigation-navigation.tsx
@@ -14,28 +14,24 @@ export function InvestigationNavigation({ investigation_id }: { investigation_id
name: "Overview",
href: `/dashboard/investigations/${investigation_id}`,
icon: Eye,
- count: 18,
},
{
id: "sketches",
name: "Sketches",
href: `/dashboard/investigations/${investigation_id}?filter=sketch`,
icon: Waypoints,
- count: 24,
},
{
id: "documents",
name: "Documents",
href: `/dashboard/investigations/${investigation_id}?filter=document`,
icon: Camera,
- count: 6,
},
{
id: "configurations",
name: "Configurations",
href: `/dashboard/investigations/${investigation_id}/settings`,
icon: Settings,
- count: null,
},
]
@@ -54,9 +50,9 @@ export function InvestigationNavigation({ investigation_id }: { investigation_id
>
<section.icon className="h-4 w-4" />
<span>{section.name}</span>
- {section.count !== null && (
+ {/* {section.count !== null && (
<span className="ml-1 rounded-full bg-primary/10 px-2 py-0.5 text-xs">{section.count}</span>
- )}
+ )} */}
</Link>
))}
</div>
diff --git a/flowsint-web/src/components/organigrams/graph.tsx b/flowsint-web/src/components/organigrams/graph.tsx
index 5064086a..5fdd8f00 100644
--- a/flowsint-web/src/components/organigrams/graph.tsx
+++ b/flowsint-web/src/components/organigrams/graph.tsx
@@ -355,7 +355,7 @@ const LayoutFlow = memo(({ refetch, theme }: any) => {
{currentNode && (
<>
<ResizablePanel order={1} id="top" defaultSize={40}>
- <ProfilePanel data={currentNode.data} type={currentNode.type} />
+ <ProfilePanel data={currentNode.data} />
</ResizablePanel>
<ResizableHandle withHandle />
</>
diff --git a/flowsint-web/src/components/sketches/add-contributor.tsx b/flowsint-web/src/components/sketches/add-contributor.tsx
index bea8249f..47aa61be 100644
--- a/flowsint-web/src/components/sketches/add-contributor.tsx
+++ b/flowsint-web/src/components/sketches/add-contributor.tsx
@@ -16,22 +16,13 @@ import {
DialogFooter,
DialogHeader,
DialogTitle,
- DialogTrigger,
} from "@/components/ui/dialog"
import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover"
import { toast } from "sonner"
import { cn, getAvatarColor } from "@/lib/utils"
import { supabase } from "@/lib/supabase/client"
import { Avatar, AvatarFallback, AvatarImage } from "../ui/avatar"
-import { User } from "../avatar-list"
-
-interface Profile {
- id: string
- first_name: string
- last_name: string
- email: string
- avatar_url: string | null
-}
+import { Profile } from "@/types"
interface AddInvestigationModalProps {
sketchId: string
diff --git a/flowsint-web/src/components/sketches/scans-drawer/scan-button.tsx b/flowsint-web/src/components/sketches/scans-drawer/scan-button.tsx
index 947fb5b5..1bf93561 100644
--- a/flowsint-web/src/components/sketches/scans-drawer/scan-button.tsx
+++ b/flowsint-web/src/components/sketches/scans-drawer/scan-button.tsx
@@ -20,10 +20,12 @@ import {
import { ScanTable } from "./scan-table"
import { toast } from "sonner"
import { supabase } from "@/lib/supabase/client"
+import { useParams } from "next/navigation"
export type Scan = {
id: string
value: string
status: "pending" | "finished" | "failed"
+ scan_name: string
results: { results: any[] }
}
@@ -32,11 +34,12 @@ export function ScanButton() {
const [pendingCount, setPendingCount] = useState(0)
const [scanId, setScanId] = useQueryState("scan_id")
const [open, setOpen] = useState(false)
+ const { sketch_id } = useParams()
useEffect(() => {
// Initial fetch of scans
const fetchScans = async () => {
- const { data, error } = await supabase.from("scans").select("*").order("created_at", { ascending: false })
+ const { data, error } = await supabase.from("scans").select("*").eq("sketch_id", sketch_id).order("created_at", { ascending: false })
if (error) {
console.error("Error fetching scans:", error)
return
diff --git a/flowsint-web/src/components/sketches/scans-drawer/scan-table.tsx b/flowsint-web/src/components/sketches/scans-drawer/scan-table.tsx
index d5ec2c42..46d884af 100644
--- a/flowsint-web/src/components/sketches/scans-drawer/scan-table.tsx
+++ b/flowsint-web/src/components/sketches/scans-drawer/scan-table.tsx
@@ -16,6 +16,7 @@ export function ScanTable({ scans, onScanClick, selectedScanId }: ScanTableProps
<TableHeader>
<TableRow>
<TableHead>Item</TableHead>
+ <TableHead>Type</TableHead>
<TableHead>Status</TableHead>
<TableHead>Results</TableHead>
</TableRow>
@@ -23,8 +24,8 @@ export function ScanTable({ scans, onScanClick, selectedScanId }: ScanTableProps
<TableBody>
{scans.length === 0 ? (
<TableRow>
- <TableCell colSpan={3} className="text-center">
- No scans found
+ <TableCell colSpan={4} className="text-center">
+ No scans yet.
</TableCell>
</TableRow>
) : (
@@ -35,6 +36,7 @@ export function ScanTable({ scans, onScanClick, selectedScanId }: ScanTableProps
onClick={() => onScanClick(scan.id)}
>
<TableCell className="font-medium"><span className=" max-w-[200px] block truncate text-ellipsis">{scan.value}</span></TableCell>
+ <TableCell className="font-medium"><span className=" max-w-[200px] block truncate text-ellipsis">{scan.scan_name}</span></TableCell>
<TableCell>
{scan.status === "pending" ? (
<Badge variant="default" className="bg-yellow-500 hover:bg-yellow-600">
diff --git a/flowsint-web/src/components/sketches/sketch-navigation.tsx b/flowsint-web/src/components/sketches/sketch-navigation.tsx
index 65daec99..ef17583f 100644
--- a/flowsint-web/src/components/sketches/sketch-navigation.tsx
+++ b/flowsint-web/src/components/sketches/sketch-navigation.tsx
@@ -11,6 +11,7 @@ import { Badge } from "../ui/badge"
import { DownloadButton } from "../download-button"
import { AvatarList } from "../avatar-list"
import { Sketch } from "@/types/sketch"
+import { Profile } from "@/types"
function SketchNavigation({ investigation_id, sketch_id, sketch, user_id }: { investigation_id: string, sketch_id: string, sketch: Sketch, user_id: string }) {
const pathname = usePathname()
@@ -73,7 +74,7 @@ function SketchNavigation({ investigation_id, sketch_id, sketch, user_id }: { in
</div>
<div className="flex items-center ">
<div className="px-2">
- <AvatarList size="md" users={sketch?.members?.map(({ profile }: { profile: { first_name: string, last_name: string, id: string } }) => ({ id: profile.id, name: `${profile.first_name} ${profile.last_name}`, owner: profile.id === sketch.owner_id })) || []} />
+ <AvatarList size="md" users={sketch?.members?.map(({ profile }: { profile: Profile }) => ({ ...profile, owner: profile.id === sketch.owner_id })) || []} />
</div>
<DownloadButton endpoint={`/api/investigations/${investigation_id}/sketches/${sketch_id}/table`} name={investigation_id} />
<MoreMenu sketch={sketch} user_id={user_id} />
diff --git a/flowsint-web/src/components/sketches/sketch/graph.tsx b/flowsint-web/src/components/sketches/sketch/graph.tsx
index d68d9691..1e043e8d 100644
--- a/flowsint-web/src/components/sketches/sketch/graph.tsx
+++ b/flowsint-web/src/components/sketches/sketch/graph.tsx
@@ -209,7 +209,7 @@ const LayoutFlow = memo(({ refetch, theme }: any) => {
// Initialize layout once
useEffect(() => {
const timer = setTimeout(() => {
- onLayout("dagre", fitView);
+ onLayout("force", fitView);
fitView();
}, 500);
return () => clearTimeout(timer);
@@ -217,7 +217,7 @@ const LayoutFlow = memo(({ refetch, theme }: any) => {
const handleRefetch = useCallback(() => {
refetch();
- onLayout("dagre", fitView);
+ onLayout("force", fitView);
fitView();
}, [refetch, onLayout, fitView]);
@@ -331,7 +331,7 @@ const LayoutFlow = memo(({ refetch, theme }: any) => {
addNodes={addNodes}
/>
<Background bgColor="var(--background)" />
- {showMiniMap && <MiniMap className="!z-40" pannable />}
+ {showMiniMap && <MiniMap className="!z-40 !bg-card" pannable />}
</ReactFlow>
</ContextMenuTrigger>
<ContextMenuContent className="w-32">
@@ -362,7 +362,7 @@ const LayoutFlow = memo(({ refetch, theme }: any) => {
{currentNode && (
<>
<ResizablePanel order={1} id="top" defaultSize={40}>
- <ProfilePanel data={currentNode.data} type={currentNode.type} />
+ <ProfilePanel data={currentNode.data} />
</ResizablePanel>
<ResizableHandle withHandle />
</>
diff --git a/flowsint-web/src/components/sketches/sketch/nodes-panel.tsx b/flowsint-web/src/components/sketches/sketch/nodes-panel.tsx
index bdb2eee0..19f23178 100644
--- a/flowsint-web/src/components/sketches/sketch/nodes-panel.tsx
+++ b/flowsint-web/src/components/sketches/sketch/nodes-panel.tsx
@@ -75,12 +75,12 @@ const NodeRenderer = memo(({
<Button
variant={"ghost"}
className={cn(
- 'flex items-center justify-start p-4 !py-5 hover:bg-muted rounded-none text-left border-b border-l-2 border-l-transparent',
- node.id === currentNodeId && 'border-l-primary bg-muted'
+ 'flex items-center justify-start p-4 !py-5 hover:bg-background rounded-none text-left border-b border-l-2 border-l-transparent',
+ node.id === currentNodeId && 'border-l-primary bg-background'
)}
onClick={handleClick}
>
- <Badge variant="outline" className="h-7 w-7 p-0 rounded-full">
+ <Badge variant="secondary" className="h-7 w-7 p-0 rounded-full">
<Icon className="h-4 w-4 opacity-60" />
</Badge>
<div className='grow truncate text-ellipsis'>{node?.data?.label}</div>
diff --git a/flowsint-web/src/components/sketches/sketch/nodes/custom-node.tsx b/flowsint-web/src/components/sketches/sketch/nodes/custom-node.tsx
index 054c594a..a987fb42 100644
--- a/flowsint-web/src/components/sketches/sketch/nodes/custom-node.tsx
+++ b/flowsint-web/src/components/sketches/sketch/nodes/custom-node.tsx
@@ -13,7 +13,7 @@ import {
import { useSketchStore } from '@/store/sketch-store';
import { useFlowStore } from '@/store/flow-store';
-export default memo(({ data, selected }: any) => {
+export default memo(({ data }: any) => {
const item = useMemo(() => (actionItems as any).find((a: any) => a.type === data.type), [data?.type]);
const Icon = item?.icon || QuestionMarkIcon;
const showNodeLabel = useSketchStore(state => state.settings.showNodeLabel);
@@ -26,7 +26,7 @@ export default memo(({ data, selected }: any) => {
<TooltipNode className={cn('p-.5 rounded-full', typeColorMap[data.type])} selected={active}>
<TooltipTrigger>
<div className="inline-flex items-center gap-2 p-1 w-auto">
- <Badge variant="outline" className={cn("p-0 rounded-full", item?.size || "h-5 w-5")}>
+ <Badge variant="secondary" className={cn("p-0 rounded-full", item?.size || "h-5 w-5")}>
<Icon className="h-4 w-4" />
</Badge>
{showNodeLabel && <div className="flex items-center gap-1">
diff --git a/flowsint-web/src/components/sketches/sketch/nodes/node-context-menu.tsx b/flowsint-web/src/components/sketches/sketch/nodes/node-context-menu.tsx
index 5b3637df..54b42e05 100644
--- a/flowsint-web/src/components/sketches/sketch/nodes/node-context-menu.tsx
+++ b/flowsint-web/src/components/sketches/sketch/nodes/node-context-menu.tsx
@@ -24,7 +24,7 @@ import { Button } from "@/components/ui/button"
import { Alert, AlertTitle, AlertDescription } from "@/components/ui/alert"
import { AlertCircle } from "lucide-react"
import { NodeNotesEditor } from "./node-notes-editor"
-import { checkEmail } from "@/lib/actions/search"
+import { performSearch } from "@/lib/actions/search"
import { nodesTypes } from "@/lib/utils"
import { actionItems, type ActionItem } from "@/lib/action-items"
@@ -52,7 +52,7 @@ const NodeContextMenu = memo(({ x, y, onClose }: NodeContextMenuProps) => {
if (!currentNode && currentNode?.data && !currentNode?.data?.email) return toast.error("No email found.")
if (!await confirm({ title: "Email scan", message: "This scan will look for some socials that the email might be associated with. The list is not exhaustive and might return false positives." })) return
// @ts-ignore
- toast.promise(checkEmail(currentNode?.data?.email, sketch_id), {
+ toast.promise(performSearch(currentNode?.data?.email, 'email', sketch_id), {
loading: "Loading...",
success: () => {
return `Scan on ${currentNode?.data?.email} has been launched.`
diff --git a/flowsint-web/src/components/sketches/sketch/profile-panel.tsx b/flowsint-web/src/components/sketches/sketch/profile-panel.tsx
index f23f3d90..8be46d8b 100644
--- a/flowsint-web/src/components/sketches/sketch/profile-panel.tsx
+++ b/flowsint-web/src/components/sketches/sketch/profile-panel.tsx
@@ -6,30 +6,31 @@ import { memo, useCallback } from "react"
import { cn } from "@/lib/utils"
import { CopyButton } from "@/components/copy"
import { toast } from "sonner"
-import { checkEmail } from "@/lib/actions/search"
+import { performSearch } from "@/lib/actions/search"
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
- DropdownMenuLabel,
- DropdownMenuSeparator,
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu"
import { useConfirm } from "@/components/use-confirm-dialog"
import Link from "next/link"
-export default function ProfilePanel({ data, type }: { data: any, type: string }) {
+import { task_names } from "@/lib/utils";
+
+export default function ProfilePanel({ data }: { data: any }) {
const { sketch_id, investigation_id } = useParams()
const { confirm } = useConfirm()
- const handleCheckEmail = useCallback(async () => {
+ const handlePerformCheck = useCallback(async (scan_name: string, item: string) => {
// @ts-ignore
- if (!data && data?.email) return toast.error("No email found.")
- if (!await confirm({ title: "Email scan", message: "This scan will look for some socials that the email might be associated with. The list is not exhaustive and might return false positives." })) return
+ if (!data && item) return toast.error(`No ${item} found.`)
+ if (!task_names.includes(scan_name)) return toast.error(`Scan "${scan_name}" doesn't exist.`)
+ if (!await confirm({ title: `Scanning "${item}"`, message: "This scan will look for some socials that this item might be associated with. The list is not exhaustive and might return false positives." })) return
// @ts-ignore
- toast.promise(checkEmail(data?.email, sketch_id), {
+ toast.promise(performSearch(item, scan_name, sketch_id), {
loading: "Loading...",
success: () => {
- return `Scan on ${data?.email} has been launched.`
+ return `Scan on ${item} has been launched.`
},
error: (error: any) => {
return (
@@ -61,18 +62,30 @@ export default function ProfilePanel({ data, type }: { data: any, type: string }
<span className="absolute inset-0 bg-black opacity-0 hover:opacity-10 transition-opacity duration-300" />
</Button>
</Link>
- :
- <Button
- onClick={handleCheckEmail}
- disabled={data?.type !== "email"}
- className="relative min-w-[80px] h-8 overflow-hidden truncate bg-gradient-to-r from-primary to-primary/80 hover:from-primary/90 hover:to-primary transition-all duration-300 px-6 py-2 text-white border-none font-medium rounded-full"
+ : data?.type === "email" ?
+ <Button
+ onClick={() => handlePerformCheck("email", data?.email)}
+ disabled={data?.type !== "email"}
+ className="relative min-w-[80px] h-8 overflow-hidden truncate bg-gradient-to-r from-primary to-primary/80 hover:from-primary/90 hover:to-primary transition-all duration-300 px-6 py-2 text-white border-none font-medium rounded-full"
>
- <span className="flex items-center gap-2">
- <Sparkles className={'h-4 w-4 transition-transform duration-300'} />
- <span>Search</span>
- </span>
- <span className="absolute inset-0 bg-black opacity-0 hover:opacity-10 transition-opacity duration-300" />
- </Button>}
+ <span className="flex items-center gap-2">
+ <Sparkles className={'h-4 w-4 transition-transform duration-300'} />
+ <span>Search</span>
+ </span>
+ <span className="absolute inset-0 bg-black opacity-0 hover:opacity-10 transition-opacity duration-300" />
+ </Button>
+ : data?.type === "social" ?
+ <Button
+ onClick={() => handlePerformCheck("username", data?.username)}
+ disabled={!data?.username}
+ className="relative min-w-[80px] h-8 overflow-hidden truncate bg-gradient-to-r from-primary to-primary/80 hover:from-primary/90 hover:to-primary transition-all duration-300 px-6 py-2 text-white border-none font-medium rounded-full"
+ >
+ <span className="flex items-center gap-2">
+ <Sparkles className={'h-4 w-4 transition-transform duration-300'} />
+ <span>Search</span>
+ </span>
+ <span className="absolute inset-0 bg-black opacity-0 hover:opacity-10 transition-opacity duration-300" />
+ </Button> : null}
<DropdownMenu>
<DropdownMenuTrigger asChild><Button variant={"ghost"} size={"icon"}><MoreHorizontalIcon /></Button></DropdownMenuTrigger>
<DropdownMenuContent>
diff --git a/flowsint-web/src/components/sketches/sketch/search-email.tsx b/flowsint-web/src/components/sketches/sketch/search-email.tsx
index f2e5e093..76bb78cc 100644
--- a/flowsint-web/src/components/sketches/sketch/search-email.tsx
+++ b/flowsint-web/src/components/sketches/sketch/search-email.tsx
@@ -1,7 +1,7 @@
import { Button } from '@/components/ui/button'
import React, { useCallback } from 'react'
import { toast } from 'sonner'
-import { checkEmail } from '@/lib/actions/search'
+import { performSearch } from '@/lib/actions/search'
const SearchEmail = ({ sketch_id, email }: { sketch_id: string, email: string }) => {
const [disabled, setDisabled] = React.useState(false)
@@ -10,7 +10,7 @@ const SearchEmail = ({ sketch_id, email }: { sketch_id: string, email: string })
setDisabled(true)
if (!sketch_id && !email) return
// @ts-ignore
- toast.promise(checkEmail(email, sketch_id), {
+ toast.promise(performSearch(email, 'email', sketch_id), {
loading: "Loading...",
success: () => {
setDisabled(false)
diff --git a/flowsint-web/src/components/ui/button.tsx b/flowsint-web/src/components/ui/button.tsx
index d326b98d..d0689daa 100644
--- a/flowsint-web/src/components/ui/button.tsx
+++ b/flowsint-web/src/components/ui/button.tsx
@@ -14,7 +14,7 @@ const buttonVariants = cva(
destructive:
"bg-destructive text-destructive-foregroundhover:bg-destructive/90",
outline:
- "border border-input bg-background hover:bg-background hover:text-accent-foreground",
+ "border border-input bg-card hover:bg-background hover:text-accent-foreground",
secondary:
"bg-secondary text-secondary-foregroundhover:bg-secondary/80",
ghost: "hover:bg-background hover:text-accent-foreground",
diff --git a/flowsint-web/src/components/ui/tooltip-node.tsx b/flowsint-web/src/components/ui/tooltip-node.tsx
index 71b0d812..898660fe 100644
--- a/flowsint-web/src/components/ui/tooltip-node.tsx
+++ b/flowsint-web/src/components/ui/tooltip-node.tsx
@@ -63,7 +63,7 @@ export const TooltipContent = forwardRef<HTMLDivElement, TooltipContentProps & {
<div ref={ref}>
<NodeToolbar
isVisible={isTooltipVisible || selected}
- className="rounded-sm bg-background p-2 shadow-md flex items-center gap-1"
+ className="rounded-sm bg-card p-2 shadow-md flex items-center gap-1"
tabIndex={1}
position={position}
>
diff --git a/flowsint-web/src/components/ui/tooltip.tsx b/flowsint-web/src/components/ui/tooltip.tsx
index 6f94c8b8..9239cd54 100644
--- a/flowsint-web/src/components/ui/tooltip.tsx
+++ b/flowsint-web/src/components/ui/tooltip.tsx
@@ -46,13 +46,13 @@ function TooltipContent({
data-slot="tooltip-content"
sideOffset={sideOffset}
className={cn(
- "bg-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-w-sm rounded-md px-3 py-1.5 text-xs",
+ "bg-card animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-w-sm rounded-md px-3 py-1.5 text-xs",
className
)}
{...props}
>
{children}
- <TooltipPrimitive.Arrow className="bg-background fill-background z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" />
+ <TooltipPrimitive.Arrow className="bg-card fill-background z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" />
</TooltipPrimitive.Content>
</TooltipPrimitive.Portal>
)
diff --git a/flowsint-web/src/data/mitr.json b/flowsint-web/src/data/mitr.json
deleted file mode 100644
index 8e706679..00000000
--- a/flowsint-web/src/data/mitr.json
+++ /dev/null
@@ -1,2814 +0,0 @@
-{
- "nodes": [
- {
- "id": "G0130",
- "type": "group",
- "attributes": {
- "val": 2,
- "name": "Ajax Security Team",
- "aliases": [
- "Operation Woolen-Goldfish",
- "AjaxTM",
- "Rocket Kitten",
- "Flying Kitten",
- "Operation Saffron Rose"
- ],
- "description": "Ajax Security Team is a group that has been active since at least 2010 and believed to be operating out of Iran. By 2014 Ajax Security Team transitioned from website defacement operations to malware-based cyber espionage campaigns targeting the US defense industrial base and Iranian users of anti-censorship technologies.",
- "tools": [
- "S0224",
- "S0225"
- ],
- "techniques": [
- "T1204.002",
- "T1566.003",
- "T1566.001",
- "T1555.003",
- "T1056.001",
- "T1105"
- ],
- "affiliation": "",
- "targets": [],
- "speciality": []
- }
- },
- {
- "id": "S0225",
- "type": "tool",
- "attributes": {
- "name": "sqlmap",
- "aliases": [],
- "labels": [
- "tool"
- ],
- "description": "sqlmap is an open source penetration testing tool that can be used to automate the process of detecting and exploiting SQL injection flaws. ",
- "platforms": [
- "Linux",
- "Windows",
- "macOS"
- ]
- }
- },
- {
- "id": "S0224",
- "type": "tool",
- "attributes": {
- "name": "Havij",
- "aliases": [],
- "labels": [
- "tool"
- ],
- "description": "Havij is an automatic SQL Injection tool distributed by the Iranian ITSecTeam security company. Havij has been used by penetration testers and adversaries. ",
- "platforms": [
- "Linux",
- "Windows",
- "macOS"
- ]
- }
- },
- {
- "id": "G0129",
- "type": "group",
- "attributes": {
- "val": 4,
- "name": "Mustang Panda",
- "aliases": [
- "TA416",
- "RedDelta",
- "BRONZE PRESIDENT"
- ],
- "description": "Mustang Panda is a China-based cyber espionage threat actor that was first observed in 2017 but may have been conducting operations since at least 2014. Mustang Panda has targeted government entities, nonprofits, religious, and other non-governmental organizations in the U.S., Germany, Mongolia, Myanmar, Pakistan, and Vietnam, among others. ",
- "tools": [
- "S0012",
- "S0590",
- "S0154",
- "S0013"
- ],
- "techniques": [
- "T1583.001",
- "T1573.001",
- "T1071.001",
- "T1074.001",
- "T1574.002",
- "T1204.002",
- "T1204.001",
- "T1052.001",
- "T1059.005",
- "T1059.003",
- "T1059.001",
- "T1566.002",
- "T1566.001",
- "T1564.001",
- "T1560.003",
- "T1560.001",
- "T1003.003",
- "T1036.005",
- "T1027.001",
- "T1070.004",
- "T1546.003",
- "T1547.001",
- "T1218.005",
- "T1218.004",
- "T1053.005",
- "T1518",
- "T1219",
- "T1203",
- "T1119",
- "T1105",
- "T1091",
- "T1083",
- "T1082",
- "T1057",
- "T1049",
- "T1047",
- "T1036",
- "T1027",
- "T1016"
- ],
- "affiliation": "",
- "targets": [],
- "speciality": []
- }
- },
- {
- "id": "S0590",
- "type": "tool",
- "attributes": {
- "name": "NBTscan",
- "aliases": [],
- "labels": [
- "tool"
- ],
- "description": "NBTscan is an open source tool that has been used by state groups to conduct internal reconnaissance within a compromised network.",
- "platforms": [
- "Windows",
- "Linux",
- "macOS"
- ]
- }
- },
- {
- "id": "S0154",
- "type": "tool",
- "attributes": {
- "name": "Cobalt Strike",
- "aliases": [],
- "labels": [
- "malware"
- ],
- "description": "Cobalt Strike is a commercial, full-featured, remote access tool that bills itself as “adversary simulation software designed to execute targeted attacks and emulate the post-exploitation actions of advanced threat actors”. Cobalt Strike’s interactive post-exploit capabilities cover the full range of ATT&CK tactics, all executed within a single, integrated system.\n\nIn addition to its own capabilities, Cobalt Strike leverages the capabilities of other well-known tools such as Metasploit and Mimikatz.",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "S0013",
- "type": "tool",
- "attributes": {
- "name": "PlugX",
- "aliases": [
- "DestroyRAT",
- "Sogu",
- "Kaba",
- "Korplug"
- ],
- "labels": [
- "malware"
- ],
- "description": "PlugX is a remote access tool (RAT) that uses modular plugins. It has been used by multiple threat groups. ",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "S0012",
- "type": "tool",
- "attributes": {
- "name": "PoisonIvy",
- "aliases": [
- "Poison Ivy",
- "Darkmoon"
- ],
- "labels": [
- "malware"
- ],
- "description": "PoisonIvy is a popular remote access tool (RAT) that has been used by many groups. ",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "G0128",
- "type": "group",
- "attributes": {
- "val": 0,
- "name": "ZIRCONIUM",
- "aliases": [
- "APT31"
- ],
- "description": "ZIRCONIUM is a threat group operating out of China, active since at least 2017, that has targeted individuals associated with the 2020 US presidential election and prominent leaders in the international affairs community.",
- "tools": [],
- "techniques": [
- "T1598",
- "T1583.006",
- "T1583.001",
- "T1573.001",
- "T1102.002",
- "T1204.001",
- "T1567.002",
- "T1059.006",
- "T1059.003",
- "T1566.002",
- "T1555.003",
- "T1036.004",
- "T1027.002",
- "T1218.007",
- "T1547.001",
- "T1140",
- "T1124",
- "T1105",
- "T1082",
- "T1068",
- "T1041",
- "T1036",
- "T1033",
- "T1016",
- "T1012"
- ],
- "affiliation": "",
- "targets": [],
- "speciality": []
- }
- },
- {
- "id": "G0127",
- "type": "group",
- "attributes": {
- "val": 3,
- "name": "TA551",
- "aliases": [
- "GOLD CABIN",
- "Shathak"
- ],
- "description": "TA551 is a financially-motivated threat group that has been active since at least 2018. The group has primarily targeted English, German, Italian, and Japanese speakers through email-based malware distribution campaigns. ",
- "tools": [
- "S0386",
- "S0476",
- "S0483"
- ],
- "techniques": [
- "T1589.002",
- "T1071.001",
- "T1132.001",
- "T1204.002",
- "T1568.002",
- "T1059.003",
- "T1566.001",
- "T1027.003",
- "T1218.010",
- "T1218.005",
- "T1218.011",
- "T1105",
- "T1036",
- "T1027"
- ],
- "affiliation": "",
- "targets": [],
- "speciality": []
- }
- },
- {
- "id": "S0483",
- "type": "tool",
- "attributes": {
- "name": "IcedID",
- "aliases": [],
- "labels": [
- "malware"
- ],
- "description": "IcedID is a modular banking malware designed to steal financial information that has been observed in the wild since at least 2017. IcedID has been downloaded by Emotet in multiple campaigns.",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "S0476",
- "type": "tool",
- "attributes": {
- "name": "Valak",
- "aliases": [],
- "labels": [
- "malware"
- ],
- "description": "Valak is a multi-stage modular malware that can function as a standalone information stealer or downloader, first observed in 2019 targeting enterprises in the US and Germany.",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "S0386",
- "type": "tool",
- "attributes": {
- "name": "Ursnif",
- "aliases": [
- "Gozi-ISFB",
- "PE_URSNIF",
- "Dreambot"
- ],
- "labels": [
- "malware"
- ],
- "description": "Ursnif is a banking trojan and variant of the Gozi malware observed being spread through various automated exploit kits, Spearphishing Attachments, and malicious links. Ursnif is associated primarily with data theft, but variants also include components (backdoors, spyware, file injectors, etc.) capable of a wide variety of behaviors.",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "G0126",
- "type": "group",
- "attributes": {
- "val": 3,
- "name": "Higaisa",
- "aliases": [],
- "description": "Higaisa is a threat group suspected to have South Korean origins. Higaisa has targeted government, public, and trade organizations in North Korea; however, they have also carried out attacks in China, Japan, Russia, Poland, and other nations. Higaisa was first disclosed in early 2019 but is assessed to have operated as early as 2009.",
- "tools": [
- "S0032",
- "S0160",
- "S0013"
- ],
- "techniques": [
- "T1059.007",
- "T1573.001",
- "T1071.001",
- "T1001.003",
- "T1090.001",
- "T1564.003",
- "T1574.002",
- "T1204.002",
- "T1059.005",
- "T1059.003",
- "T1566.001",
- "T1036.004",
- "T1027.001",
- "T1547.001",
- "T1053.005",
- "T1220",
- "T1203",
- "T1140",
- "T1124",
- "T1106",
- "T1082",
- "T1057",
- "T1041",
- "T1029",
- "T1027",
- "T1016"
- ],
- "affiliation": "",
- "targets": [],
- "speciality": []
- }
- },
- {
- "id": "S0160",
- "type": "tool",
- "attributes": {
- "name": "certutil",
- "aliases": [
- "certutil.exe"
- ],
- "labels": [
- "tool"
- ],
- "description": "certutil is a command-line utility that can be used to obtain certificate authority information and configure Certificate Services. ",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "S0032",
- "type": "tool",
- "attributes": {
- "name": "gh0st RAT",
- "aliases": [],
- "labels": [
- "malware"
- ],
- "description": "gh0st RAT is a remote access tool (RAT). The source code is public and it has been used by multiple groups. ",
- "platforms": [
- "Windows",
- "macOS"
- ]
- }
- },
- {
- "id": "G0125",
- "type": "group",
- "attributes": {
- "val": 3,
- "name": "HAFNIUM",
- "aliases": [
- "Operation Exchange Marauder"
- ],
- "description": "HAFNIUM is a likely state-sponsored cyber espionage group operating out of China that has been active since at least January 2021. HAFNIUM primarily targets entities in the US across a number of industry sectors, including infectious disease researchers, law firms, higher education institutions, defense contractors, policy think tanks, and NGOs.",
- "tools": [
- "S0020",
- "S0029",
- "S0073"
- ],
- "techniques": [
- "T1592.004",
- "T1590.005",
- "T1590",
- "T1589.002",
- "T1583.006",
- "T1583.003",
- "T1071.001",
- "T1132.001",
- "T1078.003",
- "T1567.002",
- "T1059.001",
- "T1560.001",
- "T1114.002",
- "T1003.003",
- "T1003.001",
- "T1136.002",
- "T1218.011",
- "T1505.003",
- "T1203",
- "T1105",
- "T1095"
- ],
- "affiliation": "",
- "targets": [],
- "speciality": []
- }
- },
- {
- "id": "S0073",
- "type": "tool",
- "attributes": {
- "name": "ASPXSpy",
- "aliases": [
- "ASPXTool"
- ],
- "labels": [
- "malware"
- ],
- "description": "ASPXSpy is a Web shell. It has been modified by Threat Group-3390 actors to create the ASPXTool version. ",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "S0029",
- "type": "tool",
- "attributes": {
- "name": "PsExec",
- "aliases": [],
- "labels": [
- "tool"
- ],
- "description": "PsExec is a free Microsoft tool that can be used to execute a program on another computer. It is used by IT administrators and attackers. ",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "S0020",
- "type": "tool",
- "attributes": {
- "name": "China Chopper",
- "aliases": [],
- "labels": [
- "malware"
- ],
- "description": "China Chopper is a Web Shell hosted on Web servers to provide access back into an enterprise network that does not rely on an infected system calling back to a remote command and control server. It has been used by several threat groups. ",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "G0124",
- "type": "group",
- "attributes": {
- "val": 1,
- "name": "Windigo",
- "aliases": [],
- "description": "The Windigo group has been operating since at least 2011, compromising thousands of Linux and Unix servers using the Ebury SSH backdoor to create a spam botnet. Despite law enforcement intervention against the creators, Windigo operators continued updating Ebury through 2019.",
- "tools": [
- "S0377"
- ],
- "techniques": [
- "T1518",
- "T1189",
- "T1090",
- "T1083",
- "T1082",
- "T1059",
- "T1005"
- ],
- "affiliation": "",
- "targets": [],
- "speciality": []
- }
- },
- {
- "id": "S0377",
- "type": "tool",
- "attributes": {
- "name": "Ebury",
- "aliases": [],
- "labels": [
- "malware"
- ],
- "description": "Ebury is an SSH backdoor targeting Linux operating systems. Attackers require root-level access, which allows them to replace SSH binaries (ssh, sshd, ssh-add, etc) or modify a shared library used by OpenSSH (libkeyutils).",
- "platforms": [
- "Linux"
- ]
- }
- },
- {
- "id": "G0123",
- "type": "group",
- "attributes": {
- "val": 2,
- "name": "Volatile Cedar",
- "aliases": [
- "Lebanese Cedar"
- ],
- "description": "Volatile Cedar is a Lebanese threat group that has targeted individuals, companies, and institutions worldwide. Volatile Cedar has been operating since 2012 and is motivated by political and ideological interests.",
- "tools": [
- "S0572",
- "S0569"
- ],
- "techniques": [
- "T1595.002",
- "T1505.003",
- "T1190",
- "T1105"
- ],
- "affiliation": "",
- "targets": [],
- "speciality": []
- }
- },
- {
- "id": "S0572",
- "type": "tool",
- "attributes": {
- "name": "Caterpillar WebShell",
- "aliases": [],
- "labels": [
- "malware"
- ],
- "description": "Caterpillar WebShell is a self-developed Web Shell tool created by the group Volatile Cedar. ",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "S0569",
- "type": "tool",
- "attributes": {
- "name": "Explosive",
- "aliases": [],
- "labels": [
- "malware"
- ],
- "description": "Explosive is a custom-made remote access tool used by the group Volatile Cedar. It was first identified in the wild in 2015. ",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "G0122",
- "type": "group",
- "attributes": {
- "val": 0,
- "name": "Silent Librarian",
- "aliases": [
- "TA407",
- "COBALT DICKENS"
- ],
- "description": "Silent Librarian is a group that has targeted research and proprietary data at universities, government agencies, and private sector companies worldwide since at least 2013. Members of Silent Librarian are known to have been affiliated with the Iran-based Mabna Institute which has conducted cyber intrusions at the behest of the government of Iran, specifically the Islamic Revolutionary Guard Corps (IRGC).",
- "tools": [],
- "techniques": [
- "T1608.005",
- "T1598.003",
- "T1594",
- "T1589.003",
- "T1589.002",
- "T1588.004",
- "T1588.002",
- "T1585.002",
- "T1583.001",
- "T1114.003",
- "T1110.003",
- "T1114",
- "T1078"
- ],
- "affiliation": "",
- "targets": [],
- "speciality": []
- }
- },
- {
- "id": "G0121",
- "type": "group",
- "attributes": {
- "val": 1,
- "name": "Sidewinder",
- "aliases": [
- "T-APT-04",
- "Rattlesnake"
- ],
- "description": "Sidewinder is a suspected Indian threat actor group that has been active since at least 2012. They have been observed targeting government, military, and business entities throughout Asia, primarily focusing on Pakistan, China, Nepal, and Afghanistan.",
- "tools": [
- "S0250"
- ],
- "techniques": [
- "T1598.003",
- "T1598.002",
- "T1059.007",
- "T1071.001",
- "T1074.001",
- "T1574.002",
- "T1204.002",
- "T1204.001",
- "T1059.005",
- "T1059.001",
- "T1566.002",
- "T1566.001",
- "T1518.001",
- "T1559.002",
- "T1036.005",
- "T1547.001",
- "T1218.005",
- "T1518",
- "T1203",
- "T1124",
- "T1119",
- "T1105",
- "T1083",
- "T1082",
- "T1057",
- "T1033",
- "T1027",
- "T1020",
- "T1016"
- ],
- "affiliation": "",
- "targets": [],
- "speciality": []
- }
- },
- {
- "id": "S0250",
- "type": "tool",
- "attributes": {
- "name": "Koadic",
- "aliases": [],
- "labels": [
- "tool"
- ],
- "description": "Koadic is a Windows post-exploitation framework and penetration testing tool. Koadic is publicly available on GitHub and the tool is executed via the command-line. Koadic has several options for staging payloads and creating implants. Koadic performs most of its operations using Windows Script Host. ",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "G0120",
- "type": "group",
- "attributes": {
- "val": 3,
- "name": "Evilnum",
- "aliases": [],
- "description": "Evilnum is a financially motivated threat group that has been active since at least 2018.",
- "tools": [
- "S0284",
- "S0568",
- "S0349"
- ],
- "techniques": [
- "T1059.007",
- "T1574.001",
- "T1204.001",
- "T1497.001",
- "T1566.002",
- "T1555",
- "T1070.004",
- "T1548.002",
- "T1539",
- "T1219",
- "T1105"
- ],
- "affiliation": "",
- "targets": [],
- "speciality": []
- }
- },
- {
- "id": "S0568",
- "type": "tool",
- "attributes": {
- "name": "EVILNUM",
- "aliases": [],
- "labels": [
- "malware"
- ],
- "description": "EVILNUM is fully capable backdoor that was first identified in 2018. EVILNUM is used by the APT group Evilnum which has the same name.",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "S0349",
- "type": "tool",
- "attributes": {
- "name": "LaZagne",
- "aliases": [],
- "labels": [
- "tool"
- ],
- "description": "LaZagne is a post-exploitation, open-source tool used to recover stored passwords on a system. It has modules for Windows, Linux, and OSX, but is mainly focused on Windows systems. LaZagne is publicly available on GitHub.",
- "platforms": [
- "Linux",
- "macOS",
- "Windows"
- ]
- }
- },
- {
- "id": "S0284",
- "type": "tool",
- "attributes": {
- "name": "More_eggs",
- "aliases": [
- "SKID",
- "Terra Loader",
- "SpicyOmelette"
- ],
- "labels": [
- "malware"
- ],
- "description": "More_eggs is a JScript backdoor used by Cobalt Group and FIN6. Its name was given based on the variable \"More_eggs\" being present in its code. There are at least two different versions of the backdoor being used, version 2.0 and version 4.4. ",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "G0119",
- "type": "group",
- "attributes": {
- "val": 4,
- "name": "Indrik Spider",
- "aliases": [],
- "description": "Indrik Spider is a financially motivated threat group that has leveraged the Dridex banking trojan since at least June 2014 and delivered ransomware variants since 2017. ",
- "tools": [
- "S0002",
- "S0384",
- "S0570",
- "S0363"
- ],
- "techniques": [
- "T1484.001",
- "T1584.004",
- "T1078.002",
- "T1059.003",
- "T1059.001",
- "T1036.005",
- "T1486",
- "T1105"
- ],
- "affiliation": "",
- "targets": [],
- "speciality": []
- }
- },
- {
- "id": "S0570",
- "type": "tool",
- "attributes": {
- "name": "BitPaymer",
- "aliases": [
- "wp_encrypt",
- "FriedEx"
- ],
- "labels": [
- "malware"
- ],
- "description": "BitPaymer is a ransomware variant first observed in August 2017 targeting hospitals in the U.K. BitPaymer uses a unique encryption key, ransom note, and contact information for each operation. BitPaymer has several indicators suggesting overlap with the Dridex malware and is often delivered via Dridex.",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "S0384",
- "type": "tool",
- "attributes": {
- "name": "Dridex",
- "aliases": [
- "Bugat v5"
- ],
- "labels": [
- "malware"
- ],
- "description": "Dridex is a banking Trojan that has been used for financial gain. Dridex was created from the source code of the Bugat banking trojan (also known as Cridex).",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "S0363",
- "type": "tool",
- "attributes": {
- "name": "Empire",
- "aliases": [
- "EmPyre",
- "PowerShell Empire"
- ],
- "labels": [
- "tool"
- ],
- "description": "Empire is an open source, cross-platform remote administration and post-exploitation framework that is publicly available on GitHub. While the tool itself is primarily written in Python, the post-exploitation agents are written in pure PowerShell for Windows and Python for Linux/macOS. Empire was one of five tools singled out by a joint report on public hacking tools being widely used by adversaries.",
- "platforms": [
- "Linux",
- "macOS",
- "Windows"
- ]
- }
- },
- {
- "id": "S0002",
- "type": "tool",
- "attributes": {
- "name": "Mimikatz",
- "aliases": [],
- "labels": [
- "tool"
- ],
- "description": "Mimikatz is a credential dumper capable of obtaining plaintext Windows account logins and passwords, along with many other features that make it useful for testing the security of networks. ",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "G0117",
- "type": "group",
- "attributes": {
- "val": 4,
- "name": "Fox Kitten",
- "aliases": [
- "UNC757",
- "PIONEER KITTEN",
- "Parisite"
- ],
- "description": "Fox Kitten is threat actor with a suspected nexus to the Iranian government that has been active since at least 2017 against entities in the Middle East, North Africa, Europe, Australia, and North America. Fox Kitten has targeted multiple industrial verticals including oil and gas, technology, government, defense, healthcare, manufacturing, and engineering.",
- "tools": [
- "S0556",
- "S0029",
- "S0020",
- "S0508"
- ],
- "techniques": [
- "T1555.005",
- "T1585.001",
- "T1585",
- "T1572",
- "T1059.003",
- "T1059.001",
- "T1087.002",
- "T1087.001",
- "T1560.001",
- "T1003.003",
- "T1003.001",
- "T1021.005",
- "T1021.004",
- "T1021.002",
- "T1021.001",
- "T1036.005",
- "T1036.004",
- "T1552.001",
- "T1136.001",
- "T1546.008",
- "T1505.003",
- "T1053.005",
- "T1530",
- "T1190",
- "T1210",
- "T1217",
- "T1213",
- "T1110",
- "T1105",
- "T1102",
- "T1090",
- "T1083",
- "T1078",
- "T1059",
- "T1046",
- "T1039",
- "T1027",
- "T1018",
- "T1012",
- "T1005"
- ],
- "affiliation": "",
- "targets": [],
- "speciality": []
- }
- },
- {
- "id": "S0556",
- "type": "tool",
- "attributes": {
- "name": "Pay2Key",
- "aliases": [],
- "labels": [
- "malware"
- ],
- "description": "Pay2Key is a ransomware written in C++ that has been used by Fox Kitten since at least July 2020 including campaigns against Israeli companies. Pay2Key has been incorporated with a leak site to display stolen sensitive information to further pressure victims into payment.",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "S0508",
- "type": "tool",
- "attributes": {
- "name": "Ngrok",
- "aliases": [],
- "labels": [
- "malware"
- ],
- "description": "Ngrok is a legitimate reverse proxy tool that can create a secure tunnel to servers located behind firewalls or on local machines that do not have a public IP. Ngrok has been leveraged by threat actors in several campaigns including use for lateral movement and data exfiltration.",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "G0116",
- "type": "group",
- "attributes": {
- "val": 6,
- "name": "Operation Wocao",
- "aliases": [],
- "description": "Operation Wocao described activities carried out by a China-based cyber espionage adversary. Operation Wocao targeted entities within the government, managed service providers, energy, health care, and technology sectors across several countries, including China, France, Germany, the United Kingdom, and the United States. Operation Wocao used similar TTPs and tools to APT20, suggesting a possible overlap.",
- "tools": [
- "S0357",
- "S0002",
- "S0104",
- "S0521",
- "S0105",
- "S0194"
- ],
- "techniques": [
- "T1555.005",
- "T1027.005",
- "T1573.002",
- "T1090.003",
- "T1090.001",
- "T1074.001",
- "T1078.003",
- "T1078.002",
- "T1069.001",
- "T1570",
- "T1569.002",
- "T1059.006",
- "T1059.005",
- "T1059.003",
- "T1059.001",
- "T1518.001",
- "T1087.002",
- "T1562.004",
- "T1560.001",
- "T1056.001",
- "T1003.006",
- "T1558.003",
- "T1003.001",
- "T1021.002",
- "T1552.004",
- "T1070.004",
- "T1070.001",
- "T1505.003",
- "T1053.005",
- "T1518",
- "T1190",
- "T1135",
- "T1133",
- "T1124",
- "T1120",
- "T1119",
- "T1115",
- "T1112",
- "T1111",
- "T1106",
- "T1105",
- "T1095",
- "T1090",
- "T1083",
- "T1082",
- "T1078",
- "T1057",
- "T1055",
- "T1049",
- "T1047",
- "T1046",
- "T1041",
- "T1033",
- "T1027",
- "T1018",
- "T1016",
- "T1012",
- "T1007",
- "T1005",
- "T1001"
- ],
- "affiliation": "",
- "targets": [],
- "speciality": []
- }
- },
- {
- "id": "S0521",
- "type": "tool",
- "attributes": {
- "name": "BloodHound",
- "aliases": [],
- "labels": [
- "tool"
- ],
- "description": "BloodHound is an Active Directory (AD) reconnaissance tool that can reveal hidden relationships and identify attack paths within an AD environment.",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "S0357",
- "type": "tool",
- "attributes": {
- "name": "Impacket",
- "aliases": [],
- "labels": [
- "tool"
- ],
- "description": "Impacket is an open source collection of modules written in Python for programmatically constructing and manipulating network protocols. Impacket contains several tools for remote service execution, Kerberos manipulation, Windows credential dumping, packet sniffing, and relay attacks.",
- "platforms": [
- "Linux",
- "macOS",
- "Windows"
- ]
- }
- },
- {
- "id": "S0194",
- "type": "tool",
- "attributes": {
- "name": "PowerSploit",
- "aliases": [],
- "labels": [
- "tool"
- ],
- "description": "PowerSploit is an open source, offensive security framework comprised of PowerShell modules and scripts that perform a wide range of tasks related to penetration testing such as code execution, persistence, bypassing anti-virus, recon, and exfiltration. ",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "S0105",
- "type": "tool",
- "attributes": {
- "name": "dsquery",
- "aliases": [
- "dsquery.exe"
- ],
- "labels": [
- "tool"
- ],
- "description": "dsquery is a command-line utility that can be used to query Active Directory for information from a system within a domain. It is typically installed only on Windows Server versions but can be installed on non-server variants through the Microsoft-provided Remote Server Administration Tools bundle.",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "S0104",
- "type": "tool",
- "attributes": {
- "name": "netstat",
- "aliases": [
- "netstat.exe"
- ],
- "labels": [
- "tool"
- ],
- "description": "netstat is an operating system utility that displays active TCP connections, listening ports, and network statistics. ",
- "platforms": [
- "Windows",
- "Linux",
- "macOS"
- ]
- }
- },
- {
- "id": "G0115",
- "type": "group",
- "attributes": {
- "val": 2,
- "name": "GOLD SOUTHFIELD",
- "aliases": [],
- "description": "GOLD SOUTHFIELD is a financially motivated threat group active since at least 2019 that operates the REvil Ransomware-as-a Service (RaaS). GOLD SOUTHFIELD provides backend infrastructure for affiliates recruited on underground forums to perpetrate high value deployments.",
- "tools": [
- "S0591",
- "S0496"
- ],
- "techniques": [
- "T1195.002",
- "T1059.001",
- "T1566",
- "T1190",
- "T1219",
- "T1199",
- "T1133",
- "T1113",
- "T1027"
- ],
- "affiliation": "",
- "targets": [],
- "speciality": []
- }
- },
- {
- "id": "S0591",
- "type": "tool",
- "attributes": {
- "name": "ConnectWise",
- "aliases": [
- "ScreenConnect"
- ],
- "labels": [
- "tool"
- ],
- "description": "ConnectWise is a legitimate remote administration tool that has been used since at least 2016 by threat actors including MuddyWater and GOLD SOUTHFIELD to connect to and conduct lateral movement in target environments.",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "S0496",
- "type": "tool",
- "attributes": {
- "name": "REvil",
- "aliases": [
- "Sodin",
- "Sodinokibi"
- ],
- "labels": [
- "malware"
- ],
- "description": "REvil is a ransomware family that has been linked to the GOLD SOUTHFIELD group and operated as ransomware-as-a-service (RaaS) since at least April 2019. REvil is highly configurable and shares code similarities with the GandCrab RaaS.",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "G0114",
- "type": "group",
- "attributes": {
- "val": 6,
- "name": "Chimera",
- "aliases": [],
- "description": "Chimera is a suspected China-based threat group that has been active since at least 2018 targeting the semiconductor industry in Taiwan as well as data from the airline industry.",
- "tools": [
- "S0039",
- "S0002",
- "S0029",
- "S0521",
- "S0154",
- "S0404"
- ],
- "techniques": [
- "T1589.001",
- "T1071.004",
- "T1071.001",
- "T1572",
- "T1074.002",
- "T1074.001",
- "T1078.002",
- "T1574.002",
- "T1069.001",
- "T1570",
- "T1569.002",
- "T1567.002",
- "T1059.003",
- "T1059.001",
- "T1087.002",
- "T1087.001",
- "T1560.001",
- "T1114.002",
- "T1114.001",
- "T1213.002",
- "T1556.001",
- "T1003.003",
- "T1110.004",
- "T1110.003",
- "T1021.006",
- "T1021.002",
- "T1021.001",
- "T1036.005",
- "T1070.006",
- "T1070.004",
- "T1550.002",
- "T1070.001",
- "T1053.005",
- "T1482",
- "T1217",
- "T1201",
- "T1135",
- "T1133",
- "T1124",
- "T1119",
- "T1111",
- "T1106",
- "T1105",
- "T1083",
- "T1082",
- "T1078",
- "T1057",
- "T1049",
- "T1047",
- "T1046",
- "T1041",
- "T1039",
- "T1033",
- "T1027",
- "T1018",
- "T1016",
- "T1012",
- "T1007"
- ],
- "affiliation": "",
- "targets": [],
- "speciality": []
- }
- },
- {
- "id": "S0404",
- "type": "tool",
- "attributes": {
- "name": "esentutl",
- "aliases": [
- "esentutl.exe"
- ],
- "labels": [
- "tool"
- ],
- "description": "esentutl is a command-line tool that provides database utilities for the Windows Extensible Storage Engine.",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "S0039",
- "type": "tool",
- "attributes": {
- "name": "Net",
- "aliases": [
- "net.exe"
- ],
- "labels": [
- "tool"
- ],
- "description": "The Net utility is a component of the Windows operating system. It is used in command-line operations for control of users, groups, services, and network connections. \n\nNet has a great deal of functionality, much of which is useful for an adversary, such as gathering system and network information for Discovery, moving laterally through SMB/Windows Admin Shares using <code>net use</code> commands, and interacting with services. The net1.exe utility is executed for certain functionality when net.exe is run and can be used directly in commands such as <code>net1 user</code>.",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "G0112",
- "type": "group",
- "attributes": {
- "val": 1,
- "name": "Windshift",
- "aliases": [
- "Bahamut"
- ],
- "description": "Windshift is a threat group that has been active since at least 2017, targeting specific individuals for surveillance in government departments and critical infrastructure across the Middle East.",
- "tools": [
- "S0466"
- ],
- "techniques": [
- "T1071.001",
- "T1204.002",
- "T1204.001",
- "T1059.005",
- "T1566.003",
- "T1566.002",
- "T1566.001",
- "T1518.001",
- "T1036.001",
- "T1547.001",
- "T1518",
- "T1189",
- "T1105",
- "T1082",
- "T1057",
- "T1047",
- "T1036",
- "T1033",
- "T1027",
- "T1581",
- "T1533",
- "T1523",
- "T1521",
- "T1512",
- "T1475",
- "T1476",
- "T1478",
- "T1406",
- "T1417",
- "T1420",
- "T1426",
- "T1412",
- "T1407",
- "T1429",
- "T1430",
- "T1432"
- ],
- "affiliation": "",
- "targets": [],
- "speciality": []
- }
- },
- {
- "id": "S0466",
- "type": "tool",
- "attributes": {
- "name": "WindTail",
- "aliases": [],
- "labels": [
- "malware"
- ],
- "description": "WindTail is a macOS surveillance implant used by Windshift. WindTail shares code similarities with Hack Back aka KitM OSX.",
- "platforms": [
- "macOS"
- ]
- }
- },
- {
- "id": "G0108",
- "type": "group",
- "attributes": {
- "val": 1,
- "name": "Blue Mockingbird",
- "aliases": [],
- "description": "Blue Mockingbird is a cluster of observed activity involving Monero cryptocurrency-mining payloads in dynamic-link library (DLL) form on Windows systems. The earliest observed Blue Mockingbird tools were created in December 2019.",
- "tools": [
- "S0002"
- ],
- "techniques": [
- "T1574.012",
- "T1569.002",
- "T1059.003",
- "T1059.001",
- "T1003.001",
- "T1021.002",
- "T1021.001",
- "T1036.005",
- "T1546.003",
- "T1218.010",
- "T1218.011",
- "T1543.003",
- "T1053.005",
- "T1496",
- "T1190",
- "T1134",
- "T1112",
- "T1090",
- "T1082",
- "T1047",
- "T1027"
- ],
- "affiliation": "",
- "targets": [],
- "speciality": []
- }
- },
- {
- "id": "G0107",
- "type": "group",
- "attributes": {
- "val": 1,
- "name": "Whitefly",
- "aliases": [],
- "description": "Whitefly is a cyber espionage group that has been operating since at least 2017. The group has targeted organizations based mostly in Singapore across a wide variety of sectors, and is primarily interested in stealing large amounts of sensitive information. The group has been linked to an attack against Singapore’s largest public health organization, SingHealth.",
- "tools": [
- "S0002"
- ],
- "techniques": [
- "T1574.001",
- "T1204.002",
- "T1003.001",
- "T1036.005",
- "T1105",
- "T1068",
- "T1059",
- "T1027"
- ],
- "affiliation": "",
- "targets": [],
- "speciality": []
- }
- },
- {
- "id": "G0106",
- "type": "group",
- "attributes": {
- "val": 0,
- "name": "Rocke",
- "aliases": [],
- "description": "Rocke is an alleged Chinese-speaking adversary whose primary objective appeared to be cryptojacking, or stealing victim system resources for the purposes of mining cryptocurrency. The name Rocke comes from the email address \"[email protected]\" used to create the wallet which held collected cryptocurrency. Researchers have detected overlaps between Rocke and the Iron Cybercrime Group, though this attribution has not been confirmed.",
- "tools": [],
- "techniques": [
- "T1027.004",
- "T1071.001",
- "T1102.001",
- "T1571",
- "T1574.006",
- "T1059.006",
- "T1059.004",
- "T1564.001",
- "T1518.001",
- "T1562.004",
- "T1562.001",
- "T1021.004",
- "T1036.005",
- "T1027.002",
- "T1222.002",
- "T1552.004",
- "T1070.006",
- "T1070.004",
- "T1070.002",
- "T1547.001",
- "T1543.002",
- "T1055.002",
- "T1053.003",
- "T1496",
- "T1190",
- "T1140",
- "T1105",
- "T1102",
- "T1082",
- "T1071",
- "T1057",
- "T1046",
- "T1037",
- "T1027",
- "T1018",
- "T1014"
- ],
- "affiliation": "",
- "targets": [],
- "speciality": []
- }
- },
- {
- "id": "G0105",
- "type": "group",
- "attributes": {
- "val": 2,
- "name": "DarkVishnya",
- "aliases": [],
- "description": "DarkVishnya is a financially motivated threat actor targeting financial institutions in Eastern Europe. In 2017-2018 the group attacked at least 8 banks in this region.",
- "tools": [
- "S0029",
- "S0191"
- ],
- "techniques": [
- "T1571",
- "T1059.001",
- "T1543.003",
- "T1219",
- "T1200",
- "T1135",
- "T1110",
- "T1046",
- "T1040"
- ],
- "affiliation": "",
- "targets": [],
- "speciality": []
- }
- },
- {
- "id": "S0191",
- "type": "tool",
- "attributes": {
- "name": "Winexe",
- "aliases": [],
- "labels": [
- "tool"
- ],
- "description": "Winexe is a lightweight, open source tool similar to PsExec designed to allow system administrators to execute commands on remote servers. Winexe is unique in that it is a GNU/Linux based client. ",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "G0104",
- "type": "group",
- "attributes": {
- "val": 1,
- "name": "Sharpshooter",
- "aliases": [],
- "description": "Operation Sharpshooter is the name of a cyber espionage campaign discovered in October 2018 targeting nuclear, defense, energy, and financial companies. Though overlaps between this adversary and Lazarus Group have been noted, definitive links have not been established.",
- "tools": [
- "S0448"
- ],
- "techniques": [
- "T1204.002",
- "T1059.005",
- "T1566.001",
- "T1559.002",
- "T1547.001",
- "T1106",
- "T1105",
- "T1055"
- ],
- "affiliation": "",
- "targets": [],
- "speciality": []
- }
- },
- {
- "id": "S0448",
- "type": "tool",
- "attributes": {
- "name": "Rising Sun",
- "aliases": [],
- "labels": [
- "malware"
- ],
- "description": "Rising Sun is a modular backdoor malware used extensively in Operation Sharpshooter. The malware has been observed targeting nuclear, defense, energy, and financial services companies across the world. Rising Sun uses source code from Lazarus Group's Trojan Duuzer.",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "G0103",
- "type": "group",
- "attributes": {
- "val": 2,
- "name": "Mofang",
- "aliases": [],
- "description": "Mofang is a likely China-based cyber espionage group, named for its frequent practice of imitating a victim's infrastructure. This adversary has been observed since at least May 2012 conducting focused attacks against government and critical infrastructure in Myanmar, as well as several other countries and sectors including military, automobile, and weapons industries.",
- "tools": [
- "S0445",
- "S0444"
- ],
- "techniques": [
- "T1204.002",
- "T1204.001",
- "T1566.002",
- "T1566.001",
- "T1027"
- ],
- "affiliation": "",
- "targets": [],
- "speciality": []
- }
- },
- {
- "id": "S0445",
- "type": "tool",
- "attributes": {
- "name": "ShimRatReporter",
- "aliases": [],
- "labels": [
- "tool"
- ],
- "description": "ShimRatReporter is a tool used by suspected Chinese adversary Mofang to automatically conduct initial discovery. The details from this discovery are used to customize follow-on payloads (such as ShimRat) as well as set up faux infrastructure which mimics the adversary's targets. ShimRatReporter has been used in campaigns targeting multiple countries and sectors including government, military, critical infrastructure, automobile, and weapons development.",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "S0444",
- "type": "tool",
- "attributes": {
- "name": "ShimRat",
- "aliases": [],
- "labels": [
- "malware"
- ],
- "description": "ShimRat has been used by the suspected China-based adversary Mofang in campaigns targeting multiple countries and sectors including government, military, critical infrastructure, automobile, and weapons development. The name \"ShimRat\" comes from the malware's extensive use of Windows Application Shimming to maintain persistence. ",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "G0102",
- "type": "group",
- "attributes": {
- "val": 13,
- "name": "Wizard Spider",
- "aliases": [
- "UNC1878",
- "TEMP.MixMaster",
- "Grim Spider"
- ],
- "description": "Wizard Spider is a financially motivated criminal group that has been conducting ransomware campaigns since at least August 2018 against a variety of organizations, ranging from major corporations to hospitals.",
- "tools": [
- "S0039",
- "S0552",
- "S0097",
- "S0002",
- "S0029",
- "S0446",
- "S0266",
- "S0024",
- "S0521",
- "S0154",
- "S0363",
- "S0367",
- "S0359"
- ],
- "techniques": [
- "T1588.003",
- "T1071.001",
- "T1048.003",
- "T1078.002",
- "T1570",
- "T1204.002",
- "T1204.001",
- "T1569.002",
- "T1059.003",
- "T1059.001",
- "T1566.002",
- "T1566.001",
- "T1518.001",
- "T1087.002",
- "T1562.001",
- "T1557.001",
- "T1558.003",
- "T1003.003",
- "T1003.002",
- "T1021.006",
- "T1021.002",
- "T1021.001",
- "T1036.004",
- "T1553.002",
- "T1222.001",
- "T1070.004",
- "T1547.004",
- "T1547.001",
- "T1543.003",
- "T1055.001",
- "T1053.005",
- "T1489",
- "T1210",
- "T1135",
- "T1133",
- "T1112",
- "T1082",
- "T1078",
- "T1074",
- "T1047",
- "T1041",
- "T1033",
- "T1027",
- "T1018",
- "T1016"
- ],
- "affiliation": "",
- "targets": [],
- "speciality": []
- }
- },
- {
- "id": "S0552",
- "type": "tool",
- "attributes": {
- "name": "AdFind",
- "aliases": [],
- "labels": [
- "tool"
- ],
- "description": "AdFind is a free command-line query tool that can be used for gathering information from Active Directory.",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "S0446",
- "type": "tool",
- "attributes": {
- "name": "Ryuk",
- "aliases": [],
- "labels": [
- "malware"
- ],
- "description": "Ryuk is a ransomware designed to target enterprise environments that has been used in attacks since at least 2018. Ryuk shares code similarities with Hermes ransomware.",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "S0367",
- "type": "tool",
- "attributes": {
- "name": "Emotet",
- "aliases": [
- "Geodo"
- ],
- "labels": [
- "malware"
- ],
- "description": "Emotet is a modular malware variant which is primarily used as a downloader for other malware variants such as TrickBot and IcedID. Emotet first emerged in June 2014 and has been primarily used to target the banking sector. ",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "S0359",
- "type": "tool",
- "attributes": {
- "name": "Nltest",
- "aliases": [],
- "labels": [
- "tool"
- ],
- "description": "Nltest is a Windows command-line utility used to list domain controllers and enumerate domain trusts.",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "S0266",
- "type": "tool",
- "attributes": {
- "name": "TrickBot",
- "aliases": [
- "Totbrick",
- "TSPY_TRICKLOAD"
- ],
- "labels": [
- "malware"
- ],
- "description": "TrickBot is a Trojan spyware program that has mainly been used for targeting banking sites in United States, Canada, UK, Germany, Australia, Austria, Ireland, London, Switzerland, and Scotland. TrickBot first emerged in the wild in September 2016 and appears to be a successor to Dyre. TrickBot is developed in the C++ programming language. ",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "S0097",
- "type": "tool",
- "attributes": {
- "name": "Ping",
- "aliases": [
- "ping.exe"
- ],
- "labels": [
- "tool"
- ],
- "description": "Ping is an operating system utility commonly used to troubleshoot and verify network connections. ",
- "platforms": [
- "Linux",
- "Windows",
- "macOS"
- ]
- }
- },
- {
- "id": "S0024",
- "type": "tool",
- "attributes": {
- "name": "Dyre",
- "aliases": [
- "Dyzap",
- "Dyreza"
- ],
- "labels": [
- "malware"
- ],
- "description": "Dyre is a banking Trojan that has been used for financial gain. \n ",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "G0101",
- "type": "group",
- "attributes": {
- "val": 1,
- "name": "Frankenstein",
- "aliases": [],
- "description": "Frankenstein is a campaign carried out between January and April 2019 by unknown threat actors. The campaign name comes from the actors' ability to piece together several unrelated components. ",
- "tools": [
- "S0363"
- ],
- "techniques": [
- "T1127.001",
- "T1573.001",
- "T1204.002",
- "T1059.005",
- "T1059.003",
- "T1059.001",
- "T1497.001",
- "T1566.001",
- "T1518.001",
- "T1053.005",
- "T1221",
- "T1203",
- "T1140",
- "T1119",
- "T1105",
- "T1082",
- "T1057",
- "T1047",
- "T1041",
- "T1033",
- "T1027",
- "T1020",
- "T1016",
- "T1005",
- "T1003"
- ],
- "affiliation": "",
- "targets": [],
- "speciality": []
- }
- },
- {
- "id": "G0100",
- "type": "group",
- "attributes": {
- "val": 3,
- "name": "Inception",
- "aliases": [
- "Inception Framework",
- "Cloud Atlas"
- ],
- "description": "Inception is a cyber espionage group active since at least 2014. The group has targeted multiple industries and governmental entities primarily in Russia, but has also been active in the United States and throughout Europe, Asia, Africa, and the Middle East.",
- "tools": [
- "S0349",
- "S0442",
- "S0441"
- ],
- "techniques": [
- "T1573.001",
- "T1071.001",
- "T1090.003",
- "T1204.002",
- "T1059.005",
- "T1059.001",
- "T1566.001",
- "T1069.002",
- "T1555.003",
- "T1547.001",
- "T1218.010",
- "T1218.005",
- "T1518",
- "T1221",
- "T1203",
- "T1102",
- "T1083",
- "T1082",
- "T1057",
- "T1027",
- "T1005"
- ],
- "affiliation": "",
- "targets": [],
- "speciality": []
- }
- },
- {
- "id": "S0442",
- "type": "tool",
- "attributes": {
- "name": "VBShower",
- "aliases": [],
- "labels": [
- "malware"
- ],
- "description": "VBShower is a backdoor that has been used by Inception since at least 2019. VBShower has been used as a downloader for second stage payloads, including PowerShower.",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "S0441",
- "type": "tool",
- "attributes": {
- "name": "PowerShower",
- "aliases": [],
- "labels": [
- "malware"
- ],
- "description": "PowerShower is a PowerShell backdoor used by Inception for initial reconnaissance and to download and execute second stage payloads.",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "G0099",
- "type": "group",
- "attributes": {
- "val": 1,
- "name": "APT-C-36",
- "aliases": [
- "Blind Eagle"
- ],
- "description": "APT-C-36 is a suspected South America espionage group that has been active since at least 2018. The group mainly targets Colombian government institutions as well as important corporations in the financial sector, petroleum industry, and professional manufacturing.",
- "tools": [
- "S0434"
- ],
- "techniques": [
- "T1571",
- "T1204.002",
- "T1059.005",
- "T1566.001",
- "T1036.004",
- "T1053.005",
- "T1105",
- "T1027"
- ],
- "affiliation": "",
- "targets": [],
- "speciality": []
- }
- },
- {
- "id": "S0434",
- "type": "tool",
- "attributes": {
- "name": "Imminent Monitor",
- "aliases": [],
- "labels": [
- "tool"
- ],
- "description": "Imminent Monitor was a commodity remote access tool (RAT) offered for sale from 2012 until 2019, when an operation was conducted to take down the Imminent Monitor infrastructure. Various cracked versions and variations of this RAT are still in circulation.",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "G0098",
- "type": "group",
- "attributes": {
- "val": 4,
- "name": "BlackTech",
- "aliases": [],
- "description": "BlackTech is a cyber espionage group operating against targets in East Asia, particularly Taiwan, and occasionally, Japan and Hong Kong.",
- "tools": [
- "S0437",
- "S0435",
- "S0436",
- "S0579"
- ],
- "techniques": [
- "T1574.002",
- "T1204.002",
- "T1204.001",
- "T1566.002",
- "T1566.001",
- "T1036.002",
- "T1190",
- "T1203"
- ],
- "affiliation": "",
- "targets": [],
- "speciality": []
- }
- },
- {
- "id": "S0579",
- "type": "tool",
- "attributes": {
- "name": "Waterbear",
- "aliases": [],
- "labels": [
- "malware"
- ],
- "description": "Waterbear is modular malware attributed to BlackTech that has been used primarily for lateral movement, decrypting, and triggering payloads and is capable of hiding network behaviors.",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "S0437",
- "type": "tool",
- "attributes": {
- "name": "Kivars",
- "aliases": [],
- "labels": [
- "malware"
- ],
- "description": "Kivars is a modular remote access tool (RAT), derived from the Bifrost RAT, that was used by BlackTech in a 2010 campaign.",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "S0436",
- "type": "tool",
- "attributes": {
- "name": "TSCookie",
- "aliases": [],
- "labels": [
- "malware"
- ],
- "description": "TSCookie is a remote access tool (RAT) that has been used by BlackTech in campaigns against Japanese targets.. TSCookie has been referred to as PLEAD though more recent reporting indicates a separation between the two.",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "S0435",
- "type": "tool",
- "attributes": {
- "name": "PLEAD",
- "aliases": [],
- "labels": [
- "malware"
- ],
- "description": "PLEAD is a remote access tool (RAT) and downloader used by BlackTech in targeted attacks in East Asia including Taiwan, Japan, and Hong Kong. PLEAD has also been referred to as TSCookie, though more recent reporting indicates likely separation between the two. ",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "G0096",
- "type": "group",
- "attributes": {
- "val": 23,
- "name": "APT41",
- "aliases": [
- "WICKED PANDA"
- ],
- "description": "APT41 is a threat group that researchers have assessed as Chinese state-sponsored espionage group that also conducts financially-motivated operations. APT41 has been active since as early as 2012. The group has been observed targeting healthcare, telecom, technology, and video game industries in 14 countries.",
- "tools": [
- "S0032",
- "S0095",
- "S0002",
- "S0430",
- "S0104",
- "S0194",
- "S0020",
- "S0013",
- "S0097",
- "S0190",
- "S0412",
- "S0443",
- "S0596",
- "S0112",
- "S0154",
- "S0073",
- "S0039",
- "S0069",
- "S0385",
- "S0160",
- "S0006",
- "S0363",
- "S0021"
- ],
- "techniques": [
- "T1480.001",
- "T1071.004",
- "T1071.002",
- "T1071.001",
- "T1102.001",
- "T1574.006",
- "T1574.002",
- "T1574.001",
- "T1195.002",
- "T1569.002",
- "T1568.002",
- "T1059.004",
- "T1059.003",
- "T1059.001",
- "T1566.001",
- "T1560.001",
- "T1056.001",
- "T1003.001",
- "T1110.002",
- "T1021.002",
- "T1021.001",
- "T1036.005",
- "T1553.002",
- "T1070.004",
- "T1070.003",
- "T1070.001",
- "T1136.001",
- "T1546.008",
- "T1547.001",
- "T1218.001",
- "T1218.011",
- "T1543.003",
- "T1542.003",
- "T1053.005",
- "T1496",
- "T1486",
- "T1190",
- "T1197",
- "T1203",
- "T1135",
- "T1133",
- "T1112",
- "T1105",
- "T1104",
- "T1090",
- "T1083",
- "T1078",
- "T1055",
- "T1049",
- "T1047",
- "T1046",
- "T1033",
- "T1027",
- "T1016",
- "T1014",
- "T1008"
- ],
- "affiliation": "",
- "targets": [],
- "speciality": []
- }
- },
- {
- "id": "S0596",
- "type": "tool",
- "attributes": {
- "name": "ShadowPad",
- "aliases": [
- "POISONPLUG.SHADOW"
- ],
- "labels": [
- "malware"
- ],
- "description": "ShadowPad is a modular backdoor that was first identified in a supply chain compromise of the NetSarang software in mid-July 2017. The malware was originally thought to be exclusively used by APT41, but has since been observed to be used by various Chinese threat activity groups. ",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "S0443",
- "type": "tool",
- "attributes": {
- "name": "MESSAGETAP",
- "aliases": [],
- "labels": [
- "malware"
- ],
- "description": "MESSAGETAP is a data mining malware family deployed by APT41 into telecommunications networks to monitor and save SMS traffic from specific phone numbers, IMSI numbers, or that contain specific keywords. ",
- "platforms": [
- "Linux"
- ]
- }
- },
- {
- "id": "S0430",
- "type": "tool",
- "attributes": {
- "name": "Winnti for Linux",
- "aliases": [],
- "labels": [
- "malware"
- ],
- "description": "Winnti for Linux is a trojan, seen since at least 2015, designed specifically for targeting Linux systems. Reporting indicates the winnti malware family is shared across a number of actors including Winnti Group. The Windows variant is tracked separately under Winnti for Windows.",
- "platforms": [
- "Linux"
- ]
- }
- },
- {
- "id": "S0412",
- "type": "tool",
- "attributes": {
- "name": "ZxShell",
- "aliases": [
- "Sensocode"
- ],
- "labels": [
- "malware"
- ],
- "description": "ZxShell is a remote administration tool and backdoor that can be downloaded from the Internet, particularly from Chinese hacker websites. It has been used since at least 2004.",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "S0385",
- "type": "tool",
- "attributes": {
- "name": "njRAT",
- "aliases": [
- "Njw0rm",
- "LV",
- "Bladabindi"
- ],
- "labels": [
- "malware"
- ],
- "description": "njRAT is a remote access tool (RAT) that was first observed in 2012. It has been used by threat actors in the Middle East.",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "S0190",
- "type": "tool",
- "attributes": {
- "name": "BITSAdmin",
- "aliases": [],
- "labels": [
- "tool"
- ],
- "description": "BITSAdmin is a command line tool used to create and manage BITS Jobs. ",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "S0112",
- "type": "tool",
- "attributes": {
- "name": "ROCKBOOT",
- "aliases": [],
- "labels": [
- "malware"
- ],
- "description": "ROCKBOOT is a Bootkit that has been used by an unidentified, suspected China-based group. ",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "S0095",
- "type": "tool",
- "attributes": {
- "name": "FTP",
- "aliases": [
- "ftp.exe"
- ],
- "labels": [
- "tool"
- ],
- "description": "FTP is a utility commonly available with operating systems to transfer information over the File Transfer Protocol (FTP). Adversaries can use it to transfer other tools onto a system or to exfiltrate data. ",
- "platforms": [
- "Linux",
- "Windows",
- "macOS"
- ]
- }
- },
- {
- "id": "S0069",
- "type": "tool",
- "attributes": {
- "name": "BLACKCOFFEE",
- "aliases": [],
- "labels": [
- "malware"
- ],
- "description": "BLACKCOFFEE is malware that has been used by several Chinese groups since at least 2013. ",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "S0021",
- "type": "tool",
- "attributes": {
- "name": "Derusbi",
- "aliases": [
- "PHOTO"
- ],
- "labels": [
- "malware"
- ],
- "description": "Derusbi is malware used by multiple Chinese APT groups. Both Windows and Linux variants have been observed. ",
- "platforms": [
- "Windows",
- "Linux"
- ]
- }
- },
- {
- "id": "S0006",
- "type": "tool",
- "attributes": {
- "name": "pwdump",
- "aliases": [],
- "labels": [
- "tool"
- ],
- "description": "pwdump is a credential dumper. ",
- "platforms": [
- "Windows"
- ]
- }
- },
- {
- "id": "G0095",
- "type": "group",
- "attributes": {
- "val": 1,
- "name": "Machete",
- "aliases": [
- "APT-C-43",
- "El Machete"
- ],
- "description": "Machete is a suspected Spanish-speaking cyber espionage group that has been active since at least 2010. It has primarily focused its operations within Latin America, with a particular emphasis on Venezuela, but also in the US, Europe, Russia, and parts of Asia. Machete generally targets high-profile organizations such as government institutions, intelligence services, and military units, as well as telecommunications and power companies.",
- "tools": [
- "S0409"
- ],
- "techniques": [
- "T1204.002",
- "T1204.001",
- "T1059.006",
- "T1059.005",
- "T1059.003",
- "T1566.002",
- "T1566.001",
- "T1036.005",
- "T1218.007",
- "T1053.005",
- "T1189",
- "T1032"
- ],
- "affiliation": "",
- "targets": [],
- "speciality": []
- }
- },
- {
- "id": "S0409",
- "type": "tool",
- "attributes": {
- "name": "Machete",
- "aliases": [
- "Pyark"
- ],
- "labels": [
- "malware"
- ],
- "description": "Machete is a cyber espionage toolset used by Machete. It is a Python-based backdoor targeting Windows machines that was first observed in 2010.",
- "platforms": [
- "Windows"
- ]
- }
- }
- ],
- "links": [
- {
- "source": "G0130",
- "target": "S0225"
- },
- {
- "source": "G0130",
- "target": "S0224"
- },
- {
- "source": "G0129",
- "target": "S0590"
- },
- {
- "source": "G0129",
- "target": "S0154"
- },
- {
- "source": "G0129",
- "target": "S0013"
- },
- {
- "source": "G0129",
- "target": "S0012"
- },
- {
- "source": "G0127",
- "target": "S0483"
- },
- {
- "source": "G0127",
- "target": "S0476"
- },
- {
- "source": "G0127",
- "target": "S0386"
- },
- {
- "source": "G0126",
- "target": "S0160"
- },
- {
- "source": "G0126",
- "target": "S0032"
- },
- {
- "source": "G0126",
- "target": "S0013"
- },
- {
- "source": "G0125",
- "target": "S0073"
- },
- {
- "source": "G0125",
- "target": "S0029"
- },
- {
- "source": "G0125",
- "target": "S0020"
- },
- {
- "source": "G0124",
- "target": "S0377"
- },
- {
- "source": "G0123",
- "target": "S0572"
- },
- {
- "source": "G0123",
- "target": "S0569"
- },
- {
- "source": "G0121",
- "target": "S0250"
- },
- {
- "source": "G0120",
- "target": "S0568"
- },
- {
- "source": "G0120",
- "target": "S0349"
- },
- {
- "source": "G0120",
- "target": "S0284"
- },
- {
- "source": "G0119",
- "target": "S0570"
- },
- {
- "source": "G0119",
- "target": "S0384"
- },
- {
- "source": "G0119",
- "target": "S0363"
- },
- {
- "source": "G0119",
- "target": "S0002"
- },
- {
- "source": "G0117",
- "target": "S0556"
- },
- {
- "source": "G0117",
- "target": "S0508"
- },
- {
- "source": "G0117",
- "target": "S0029"
- },
- {
- "source": "G0117",
- "target": "S0020"
- },
- {
- "source": "G0116",
- "target": "S0521"
- },
- {
- "source": "G0116",
- "target": "S0357"
- },
- {
- "source": "G0116",
- "target": "S0194"
- },
- {
- "source": "G0116",
- "target": "S0105"
- },
- {
- "source": "G0116",
- "target": "S0104"
- },
- {
- "source": "G0116",
- "target": "S0002"
- },
- {
- "source": "G0115",
- "target": "S0591"
- },
- {
- "source": "G0115",
- "target": "S0496"
- },
- {
- "source": "G0115",
- "target": "S0496"
- },
- {
- "source": "G0114",
- "target": "S0521"
- },
- {
- "source": "G0114",
- "target": "S0404"
- },
- {
- "source": "G0114",
- "target": "S0154"
- },
- {
- "source": "G0114",
- "target": "S0039"
- },
- {
- "source": "G0114",
- "target": "S0029"
- },
- {
- "source": "G0114",
- "target": "S0002"
- },
- {
- "source": "G0112",
- "target": "S0466"
- },
- {
- "source": "G0108",
- "target": "S0002"
- },
- {
- "source": "G0107",
- "target": "S0002"
- },
- {
- "source": "G0105",
- "target": "S0191"
- },
- {
- "source": "G0105",
- "target": "S0029"
- },
- {
- "source": "G0104",
- "target": "S0448"
- },
- {
- "source": "G0103",
- "target": "S0445"
- },
- {
- "source": "G0103",
- "target": "S0444"
- },
- {
- "source": "G0102",
- "target": "S0552"
- },
- {
- "source": "G0102",
- "target": "S0521"
- },
- {
- "source": "G0102",
- "target": "S0446"
- },
- {
- "source": "G0102",
- "target": "S0367"
- },
- {
- "source": "G0102",
- "target": "S0363"
- },
- {
- "source": "G0102",
- "target": "S0359"
- },
- {
- "source": "G0102",
- "target": "S0266"
- },
- {
- "source": "G0102",
- "target": "S0154"
- },
- {
- "source": "G0102",
- "target": "S0097"
- },
- {
- "source": "G0102",
- "target": "S0039"
- },
- {
- "source": "G0102",
- "target": "S0029"
- },
- {
- "source": "G0102",
- "target": "S0024"
- },
- {
- "source": "G0102",
- "target": "S0002"
- },
- {
- "source": "G0102",
- "target": "S0446"
- },
- {
- "source": "G0101",
- "target": "S0363"
- },
- {
- "source": "G0100",
- "target": "S0442"
- },
- {
- "source": "G0100",
- "target": "S0441"
- },
- {
- "source": "G0100",
- "target": "S0349"
- },
- {
- "source": "G0099",
- "target": "S0434"
- },
- {
- "source": "G0098",
- "target": "S0579"
- },
- {
- "source": "G0098",
- "target": "S0437"
- },
- {
- "source": "G0098",
- "target": "S0436"
- },
- {
- "source": "G0098",
- "target": "S0435"
- },
- {
- "source": "G0096",
- "target": "S0596"
- },
- {
- "source": "G0096",
- "target": "S0443"
- },
- {
- "source": "G0096",
- "target": "S0430"
- },
- {
- "source": "G0096",
- "target": "S0412"
- },
- {
- "source": "G0096",
- "target": "S0385"
- },
- {
- "source": "G0096",
- "target": "S0363"
- },
- {
- "source": "G0096",
- "target": "S0194"
- },
- {
- "source": "G0096",
- "target": "S0190"
- },
- {
- "source": "G0096",
- "target": "S0160"
- },
- {
- "source": "G0096",
- "target": "S0154"
- },
- {
- "source": "G0096",
- "target": "S0112"
- },
- {
- "source": "G0096",
- "target": "S0104"
- },
- {
- "source": "G0096",
- "target": "S0097"
- },
- {
- "source": "G0096",
- "target": "S0095"
- },
- {
- "source": "G0096",
- "target": "S0073"
- },
- {
- "source": "G0096",
- "target": "S0069"
- },
- {
- "source": "G0096",
- "target": "S0039"
- },
- {
- "source": "G0096",
- "target": "S0032"
- },
- {
- "source": "G0096",
- "target": "S0021"
- },
- {
- "source": "G0096",
- "target": "S0020"
- },
- {
- "source": "G0096",
- "target": "S0013"
- },
- {
- "source": "G0096",
- "target": "S0006"
- },
- {
- "source": "G0096",
- "target": "S0002"
- },
- {
- "source": "G0095",
- "target": "S0409"
- }
- ]
-}
\ No newline at end of file
diff --git a/flowsint-web/src/lib/actions/search.ts b/flowsint-web/src/lib/actions/search.ts
index ae9a0be9..da28bc3f 100644
--- a/flowsint-web/src/lib/actions/search.ts
+++ b/flowsint-web/src/lib/actions/search.ts
@@ -1,15 +1,17 @@
'use server'
-import { createClient } from "../supabase/server";
-
-export async function checkEmail(email: string, sketch_id: string) {
- const url = `${process.env.NEXT_PUBLIC_DOCKER_FLOWSINT_API}/scan/`;
+import { createClient } from "@/lib/supabase/server";
+import { task_names } from "@/lib/utils";
+export async function performSearch(value: string, task_name: string, sketch_id: string) {
+ if (!task_names.includes(task_name))
+ return { error: `Task name "${task_name}" not found.` }
+ const url = `${process.env.NEXT_PUBLIC_DOCKER_FLOWSINT_API}/scan/${task_name}`;
const response = await fetch(url, {
method: 'POST',
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
- "email": email,
+ [task_name]: value,
"sketch_id": sketch_id
})
},
@@ -17,6 +19,7 @@ export async function checkEmail(email: string, sketch_id: string) {
return response.json();
}
+
async function checkBreachedAccount(account: string | number | boolean, apiKey: string, appName: string) {
const url = `https://haveibeenpwned.com/api/v3/breachedaccount/${encodeURIComponent(account)}?truncateResponse=false`;
const supabase = await createClient()
diff --git a/flowsint-web/src/lib/utils.ts b/flowsint-web/src/lib/utils.ts
index ee897a73..a4323270 100644
--- a/flowsint-web/src/lib/utils.ts
+++ b/flowsint-web/src/lib/utils.ts
@@ -511,4 +511,6 @@ export function encodedRedirect(
message: string,
) {
return redirect(`${path}?${type}=${encodeURIComponent(message)}`);
-}
\ No newline at end of file
+}
+
+export const task_names = ["email", "username"]
diff --git a/flowsint-web/src/types/index.ts b/flowsint-web/src/types/index.ts
index bf1e0f63..a55860e1 100644
--- a/flowsint-web/src/types/index.ts
+++ b/flowsint-web/src/types/index.ts
@@ -49,3 +49,12 @@ export interface Tools {
[key: string]: ToolCategory
}
+export interface Profile {
+ owner?: boolean,
+ first_name: string,
+ last_name: string,
+ id: string,
+ avatar_url?: string
+
+}
+
diff --git a/flowsint-web/src/types/investigation.ts b/flowsint-web/src/types/investigation.ts
index 9c79db7a..56c3b834 100644
--- a/flowsint-web/src/types/investigation.ts
+++ b/flowsint-web/src/types/investigation.ts
@@ -1,3 +1,4 @@
+import { Profile } from "."
import { Sketch } from "./sketch"
export interface Investigation {
@@ -9,6 +10,6 @@ export interface Investigation {
last_updated_at: string
owner: any
owner_id: string,
- members?: any[]
+ members?: { profile: Profile }[]
status: string
}
\ No newline at end of file
diff --git a/flowsint-web/src/types/sketch.ts b/flowsint-web/src/types/sketch.ts
index beb20c36..b6c9bbc7 100644
--- a/flowsint-web/src/types/sketch.ts
+++ b/flowsint-web/src/types/sketch.ts
@@ -1,3 +1,4 @@
+import { Profile } from "."
import { Investigation } from "./investigation"
export interface Sketch {
@@ -8,13 +9,13 @@ export interface Sketch {
priority?: string
created_at: string
last_updated_at: string
- owner: any
+ owner: Profile
owner_id: string,
relations?: any[]
individuals?: any[]
investigation?: Investigation
investigation_id: string
- members?: any[]
+ members?: { profile: Profile }[]
}
export interface Individual {
id: string
diff --git a/flowsint-web/styles/globals.css b/flowsint-web/styles/globals.css
index cdbb6277..3f181cda 100644
--- a/flowsint-web/styles/globals.css
+++ b/flowsint-web/styles/globals.css
@@ -64,100 +64,100 @@
}
:root {
- --background: oklch(0.98 0.00 286.38);
+ --background: oklch(.98 0 0);
--foreground: oklch(0.32 0 0);
--card: oklch(1.00 0 0);
--card-foreground: oklch(0.32 0 0);
--popover: oklch(1.00 0 0);
--popover-foreground: oklch(0.32 0 0);
- --primary: oklch(0.65 0.15 150.31);
+ --primary: oklch(0.64 0.17 36.44);
--primary-foreground: oklch(1.00 0 0);
- --secondary: oklch(0.67 0.14 261.34);
- --secondary-foreground: oklch(1.00 0 0);
- --muted: oklch(0.88 0.03 98.10);
- --muted-foreground: oklch(0.54 0 0);
- --accent: oklch(0.83 0.11 211.96);
- --accent-foreground: oklch(0.32 0 0);
+ --secondary: oklch(0.97 0.00 264.54);
+ --secondary-foreground: oklch(0.45 0.03 256.80);
+ --muted: oklch(0.98 0.00 247.84);
+ --muted-foreground: oklch(0.55 0.02 264.36);
+ --accent: oklch(0.91 0.02 243.82);
+ --accent-foreground: oklch(0.38 0.14 265.52);
--destructive: oklch(0.64 0.21 25.33);
--destructive-foreground: oklch(1.00 0 0);
- --border: oklch(0.87 0 0);
- --input: oklch(0.87 0 0);
- --ring: oklch(0.65 0.15 150.31);
- --chart-1: oklch(0.65 0.15 150.31);
- --chart-2: oklch(0.67 0.14 261.34);
- --chart-3: oklch(0.83 0.11 211.96);
- --chart-4: oklch(0.59 0.10 245.74);
- --chart-5: oklch(0.59 0.16 148.24);
- --sidebar: oklch(0.98 0.00 286.38);
+ --border: oklch(0.90 0.01 247.88);
+ --input: oklch(0.97 0.00 264.54);
+ --ring: oklch(0.64 0.17 36.44);
+ --chart-1: oklch(0.72 0.06 248.68);
+ --chart-2: oklch(0.79 0.09 35.96);
+ --chart-3: oklch(0.58 0.08 254.16);
+ --chart-4: oklch(0.50 0.08 259.49);
+ --chart-5: oklch(0.42 0.10 264.03);
+ --sidebar: oklch(0.90 0.00 258.33);
--sidebar-foreground: oklch(0.32 0 0);
- --sidebar-primary: oklch(0.65 0.15 150.31);
+ --sidebar-primary: oklch(0.64 0.17 36.44);
--sidebar-primary-foreground: oklch(1.00 0 0);
- --sidebar-accent: oklch(0.83 0.11 211.96);
- --sidebar-accent-foreground: oklch(0.32 0 0);
- --sidebar-border: oklch(0.87 0 0);
- --sidebar-ring: oklch(0.65 0.15 150.31);
- --font-sans: Plus Jakarta Sans, sans-serif;
+ --sidebar-accent: oklch(0.91 0.02 243.82);
+ --sidebar-accent-foreground: oklch(0.38 0.14 265.52);
+ --sidebar-border: oklch(0.93 0.01 264.53);
+ --sidebar-ring: oklch(0.64 0.17 36.44);
+ --font-sans: Inter, sans-serif;
--font-serif: Source Serif 4, serif;
--font-mono: JetBrains Mono, monospace;
- --radius: 0.5rem;
- --shadow-2xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
- --shadow-xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
- --shadow-sm: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10);
- --shadow: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10);
- --shadow-md: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 2px 4px -1px hsl(0 0% 0% / 0.10);
- --shadow-lg: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 4px 6px -1px hsl(0 0% 0% / 0.10);
- --shadow-xl: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 8px 10px -1px hsl(0 0% 0% / 0.10);
- --shadow-2xl: 0 1px 3px 0px hsl(0 0% 0% / 0.25);
- }
-
- .dark {
- --background: oklch(0.21 0.01 264.29);
+ --radius: 0.75rem;
+ --shadow-2xs: 0px 1px 3px 0px hsl(0 0% 0% / 0.05);
+ --shadow-xs: 0px 1px 3px 0px hsl(0 0% 0% / 0.05);
+ --shadow-sm: 0px 1px 3px 0px hsl(0 0% 0% / 0.10), 0px 1px 2px -1px hsl(0 0% 0% / 0.10);
+ --shadow: 0px 1px 3px 0px hsl(0 0% 0% / 0.10), 0px 1px 2px -1px hsl(0 0% 0% / 0.10);
+ --shadow-md: 0px 1px 3px 0px hsl(0 0% 0% / 0.10), 0px 2px 4px -1px hsl(0 0% 0% / 0.10);
+ --shadow-lg: 0px 1px 3px 0px hsl(0 0% 0% / 0.10), 0px 4px 6px -1px hsl(0 0% 0% / 0.10);
+ --shadow-xl: 0px 1px 3px 0px hsl(0 0% 0% / 0.10), 0px 8px 10px -1px hsl(0 0% 0% / 0.10);
+ --shadow-2xl: 0px 1px 3px 0px hsl(0 0% 0% / 0.25);
+}
+
+.dark {
+ --background: oklch(0.24 0.02 268.40);
--foreground: oklch(0.92 0 0);
- --card: oklch(0.2 0.01 264.29);
+ --card: oklch(0.26 0.02 268.40);
--card-foreground: oklch(0.92 0 0);
- --popover: oklch(0.23 0.01 223.67);
+ --popover: oklch(0.29 0.02 268.40);
--popover-foreground: oklch(0.92 0 0);
- --primary: oklch(0.65 0.15 150.31);
+ --primary: oklch(0.64 0.17 36.44);
--primary-foreground: oklch(1.00 0 0);
- --secondary: oklch(0.59 0.10 245.74);
+ --secondary: oklch(0.31 0.03 266.71);
--secondary-foreground: oklch(0.92 0 0);
- --muted: oklch(0.23 0 0);
+ --muted: oklch(0.31 0.03 266.71);
--muted-foreground: oklch(0.72 0 0);
- --accent: oklch(0.67 0.14 261.34);
- --accent-foreground: oklch(0.92 0 0);
+ --accent: oklch(0.34 0.06 267.59);
+ --accent-foreground: oklch(0.88 0.06 254.13);
--destructive: oklch(0.64 0.21 25.33);
--destructive-foreground: oklch(1.00 0 0);
- --border: oklch(0.39 0 0);
- --input: oklch(0.39 0 0);
- --ring: oklch(0.65 0.15 150.31);
- --chart-1: oklch(0.65 0.15 150.31);
- --chart-2: oklch(0.59 0.10 245.74);
- --chart-3: oklch(0.67 0.14 261.34);
- --chart-4: oklch(0.83 0.11 211.96);
- --chart-5: oklch(0.59 0.16 148.24);
- --sidebar: oklch(0.23 0.01 264.29);
+ --border: oklch(0.38 0.03 269.73);
+ --input: oklch(0.38 0.03 269.73);
+ --ring: oklch(0.64 0.17 36.44);
+ --chart-1: oklch(0.72 0.06 248.68);
+ --chart-2: oklch(0.77 0.09 34.19);
+ --chart-3: oklch(0.58 0.08 254.16);
+ --chart-4: oklch(0.50 0.08 259.49);
+ --chart-5: oklch(0.42 0.10 264.03);
+ --sidebar: oklch(0.31 0.03 267.74);
--sidebar-foreground: oklch(0.92 0 0);
- --sidebar-primary: oklch(0.65 0.15 150.31);
+ --sidebar-primary: oklch(0.64 0.17 36.44);
--sidebar-primary-foreground: oklch(1.00 0 0);
- --sidebar-accent: oklch(0.67 0.14 261.34);
- --sidebar-accent-foreground: oklch(0.92 0 0);
- --sidebar-border: oklch(0.39 0 0);
- --sidebar-ring: oklch(0.65 0.15 150.31);
- --font-sans: Plus Jakarta Sans, sans-serif;
+ --sidebar-accent: oklch(0.34 0.06 267.59);
+ --sidebar-accent-foreground: oklch(0.88 0.06 254.13);
+ --sidebar-border: oklch(0.38 0.03 269.73);
+ --sidebar-ring: oklch(0.64 0.17 36.44);
+ --font-sans: Inter, sans-serif;
--font-serif: Source Serif 4, serif;
--font-mono: JetBrains Mono, monospace;
- --radius: 0.5rem;
- --shadow-2xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
- --shadow-xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
- --shadow-sm: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10);
- --shadow: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10);
- --shadow-md: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 2px 4px -1px hsl(0 0% 0% / 0.10);
- --shadow-lg: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 4px 6px -1px hsl(0 0% 0% / 0.10);
- --shadow-xl: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 8px 10px -1px hsl(0 0% 0% / 0.10);
- --shadow-2xl: 0 1px 3px 0px hsl(0 0% 0% / 0.25);
- }
-
- @theme inline {
+ --radius: 0.75rem;
+ --shadow-2xs: 0px 1px 3px 0px hsl(0 0% 0% / 0.05);
+ --shadow-xs: 0px 1px 3px 0px hsl(0 0% 0% / 0.05);
+ --shadow-sm: 0px 1px 3px 0px hsl(0 0% 0% / 0.10), 0px 1px 2px -1px hsl(0 0% 0% / 0.10);
+ --shadow: 0px 1px 3px 0px hsl(0 0% 0% / 0.10), 0px 1px 2px -1px hsl(0 0% 0% / 0.10);
+ --shadow-md: 0px 1px 3px 0px hsl(0 0% 0% / 0.10), 0px 2px 4px -1px hsl(0 0% 0% / 0.10);
+ --shadow-lg: 0px 1px 3px 0px hsl(0 0% 0% / 0.10), 0px 4px 6px -1px hsl(0 0% 0% / 0.10);
+ --shadow-xl: 0px 1px 3px 0px hsl(0 0% 0% / 0.10), 0px 8px 10px -1px hsl(0 0% 0% / 0.10);
+ --shadow-2xl: 0px 1px 3px 0px hsl(0 0% 0% / 0.25);
+}
+
+@theme inline {
--color-background: var(--background);
--color-foreground: var(--foreground);
--color-card: var(--card);
@@ -190,16 +190,16 @@
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
--color-sidebar-border: var(--sidebar-border);
--color-sidebar-ring: var(--sidebar-ring);
-
+
--font-sans: var(--font-sans);
--font-mono: var(--font-mono);
--font-serif: var(--font-serif);
-
+
--radius-sm: calc(var(--radius) - 4px);
--radius-md: calc(var(--radius) - 2px);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) + 4px);
-
+
--shadow-2xs: var(--shadow-2xs);
--shadow-xs: var(--shadow-xs);
--shadow-sm: var(--shadow-sm);
@@ -208,4 +208,4 @@
--shadow-lg: var(--shadow-lg);
--shadow-xl: var(--shadow-xl);
--shadow-2xl: var(--shadow-2xl);
- }
\ No newline at end of file
+}
\ No newline at end of file