Skip to content

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

fix: sirene scanner

dextmorgna958424f00c6
diff --git a/flowsint-api/app/scanners/organizations/sirene.py b/flowsint-api/app/scanners/organizations/sirene.py
index 3b046b26..e7a840e0 100644
--- a/flowsint-api/app/scanners/organizations/sirene.py
+++ b/flowsint-api/app/scanners/organizations/sirene.py
@@ -20,7 +20,7 @@ class SireneScanner(Scanner):
@classmethod
def category(cls) -> str:
- return "organizations"
+ return "Organization"
@classmethod
def key(cls) -> str:
@@ -116,7 +116,7 @@ class SireneScanner(Scanner):
o.sketch_id = $sketch_id
""", {
"name": org.name,
- "country": org.country,
+ "country": "FR",
"founding_date": org.founding_date,
"description": org.description,
"label": org.name,
diff --git a/flowsint-api/app/types/organization.py b/flowsint-api/app/types/organization.py
index 37265cbf..6d89e979 100644
--- a/flowsint-api/app/types/organization.py
+++ b/flowsint-api/app/types/organization.py
@@ -12,4 +12,5 @@ class Organization(BaseModel):
name: str = Field(..., description="Organization name")
founding_date: Optional[str] = Field(None, description="Date when the organization was founded")
country: Optional[str] = Field(None, description="Country where the organization is based")
- description: Optional[str] = Field(None, description="Description of the organization's activities")
\ No newline at end of file
+ description: Optional[str] = Field(None, description="Description of the organization's activities")
+ identifiers: Optional[List[Identifier]] = Field(None, description="Identifiers of the organization")
\ No newline at end of file
diff --git a/flowsint-app/src/renderer/public/icons/whois.svg b/flowsint-app/src/renderer/public/icons/whois.svg
index 5bfe253c..6f40b6ae 100644
--- a/flowsint-app/src/renderer/public/icons/whois.svg
+++ b/flowsint-app/src/renderer/public/icons/whois.svg
@@ -1 +1 @@
-<?xml version="1.0" ?><svg id="fill" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><rect height="54" style="fill:#cfcfd9" width="14" x="44" y="5"/><polygon points="50 61 6 61 6 3 42 3 50 11 50 61" style="fill:#e5e6eb"/><path d="M48,9V23.743A35.257,35.257,0,0,1,12.743,59H6v2H50V11Z" style="fill:#d9dae2"/><circle cx="22" cy="18" r="9" style="fill:#fff"/><circle cx="22" cy="46" r="9" style="fill:#fff"/><path d="M23.972,17H20.028A2.028,2.028,0,0,0,18,19.028v7.025a8.921,8.921,0,0,0,8,0V19.028A2.028,2.028,0,0,0,23.972,17Z" style="fill:#A6D0BF"/><circle cx="22" cy="14" r="3" style="fill:#A6D0BF"/><rect height="2" style="fill:#444" width="4" x="33" y="14"/><rect height="2" style="fill:#444" width="2" x="39" y="14"/><rect height="2" style="fill:#444" width="9" x="33" y="18"/><rect height="2" style="fill:#444" width="11" x="33" y="22"/><path d="M23.972,45H20.028A2.028,2.028,0,0,0,18,47.028v7.025a8.921,8.921,0,0,0,8,0V47.028A2.028,2.028,0,0,0,23.972,45Z" style="fill:#A6D0BF"/><circle cx="22" cy="42" r="3" style="fill:#A6D0BF"/><rect height="2" style="fill:#444" width="4" x="33" y="42"/><rect height="2" style="fill:#444" width="2" x="39" y="42"/><rect height="2" style="fill:#444" width="9" x="33" y="46"/><rect height="2" style="fill:#444" width="11" x="33" y="50"/><polygon points="50 11 42 11 42 3 50 11" style="fill:#cceaff"/><path d="M58,4H44.414L42.707,2.293A1,1,0,0,0,42,2H6A1,1,0,0,0,5,3V61a1,1,0,0,0,1,1H50a1,1,0,0,0,1-1V60h7a1,1,0,0,0,1-1V5A1,1,0,0,0,58,4ZM43,5.414,47.586,10H43ZM7,60V4H41v7a1,1,0,0,0,1,1h7V60Zm50-2H51V11a1,1,0,0,0-.293-.707L46.414,6H57Z"/></svg>
\ No newline at end of file
+<?xml version="1.0" ?><svg id="fill" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><rect height="54" style="fill:#cfcfd9" width="14" x="44" y="5"/><polygon points="50 61 6 61 6 3 42 3 50 11 50 61" style="fill:#e5e6eb"/><path d="M48,9V23.743A35.257,35.257,0,0,1,12.743,59H6v2H50V11Z" style="fill:#d9dae2"/><circle cx="22" cy="18" r="9" style="fill:#fff"/><circle cx="22" cy="46" r="9" style="fill:#fff"/><path d="M23.972,17H20.028A2.028,2.028,0,0,0,18,19.028v7.025a8.921,8.921,0,0,0,8,0V19.028A2.028,2.028,0,0,0,23.972,17Z" style="fill:#A6D0BF"/><circle cx="22" cy="14" r="3" style="fill:#A6D0BF"/><rect height="2" style="fill:#888" width="4" x="33" y="14"/><rect height="2" style="fill:#888" width="2" x="39" y="14"/><rect height="2" style="fill:#888" width="9" x="33" y="18"/><rect height="2" style="fill:#888" width="11" x="33" y="22"/><path d="M23.972,45H20.028A2.028,2.028,0,0,0,18,47.028v7.025a8.921,8.921,0,0,0,8,0V47.028A2.028,2.028,0,0,0,23.972,45Z" style="fill:#A6D0BF"/><circle cx="22" cy="42" r="3" style="fill:#A6D0BF"/><rect height="2" style="fill:#888" width="4" x="33" y="42"/><rect height="2" style="fill:#888" width="2" x="39" y="42"/><rect height="2" style="fill:#888" width="9" x="33" y="46"/><rect height="2" style="fill:#888" width="11" x="33" y="50"/><polygon points="50 11 42 11 42 3 50 11" style="fill:#cceaff"/><path d="M58,4H44.414L42.707,2.293A1,1,0,0,0,42,2H6A1,1,0,0,0,5,3V61a1,1,0,0,0,1,1H50a1,1,0,0,0,1-1V60h7a1,1,0,0,0,1-1V5A1,1,0,0,0,58,4ZM43,5.414,47.586,10H43ZM7,60V4H41v7a1,1,0,0,0,1,1h7V60Zm50-2H51V11a1,1,0,0,0-.293-.707L46.414,6H57Z" style="fill:#ccc"/></svg>
\ No newline at end of file
diff --git a/flowsint-app/src/renderer/src/components/tab-bar.tsx b/flowsint-app/src/renderer/src/components/tab-bar.tsx
index b19f66db..13268bed 100644
--- a/flowsint-app/src/renderer/src/components/tab-bar.tsx
+++ b/flowsint-app/src/renderer/src/components/tab-bar.tsx
@@ -2,6 +2,7 @@ import { useBoundStore } from '@/stores/use-bound-store'
import { AnimatePresence, motion, Reorder } from 'framer-motion'
import { MdAdd } from 'react-icons/md'
import { Tab } from './tab'
+import { useParams } from '@tanstack/react-router'
export default function TabBar() {
const tabs = useBoundStore((state) => state.tabs.items)
@@ -11,6 +12,19 @@ export default function TabBar() {
const setTabs = useBoundStore((state) => state.tabs.reorder)
const selectedTab = useBoundStore((state) => state.tabs.selectedTabId)
const selectedTabIndex = useBoundStore((state) => state.tabs.selectedTabIndex)
+ const { investigationId } = useParams({ strict: false })
+
+ const handleAddTab = () => {
+ if (investigationId) {
+ add({
+ id: `new-tab-${Date.now()}`,
+ type: 'graph',
+ investigationId,
+ title: 'New Tab'
+ })
+ }
+ }
+
return (
<div className="flex flex-row flex-grow bg-background">
<Reorder.Group
@@ -34,7 +48,7 @@ export default function TabBar() {
<motion.button
className="titlebar-button flex items-center justify-center hover:bg-white/5
rounded-full h-6 w-6 transition-all duration-300 ml-2"
- onClick={add}
+ onClick={handleAddTab}
whileTap={{ scale: 0.9 }}
>
<MdAdd className="opacity-55 hover:opacity-100 transition-all text-white duration-300" />
diff --git a/flowsint-app/src/renderer/src/routes/__root.tsx b/flowsint-app/src/renderer/src/routes/__root.tsx
index 50d20ac8..49d4a78d 100644
--- a/flowsint-app/src/renderer/src/routes/__root.tsx
+++ b/flowsint-app/src/renderer/src/routes/__root.tsx
@@ -2,16 +2,20 @@ import { Outlet, createRootRouteWithContext } from '@tanstack/react-router'
import type { QueryClient } from '@tanstack/react-query'
import { Toaster } from '@/components/ui/sonner'
import '@/styles.css'
+import { useTheme } from '@/components/theme-provider'
export interface MyRouterContext {
queryClient: QueryClient
}
export const Route = createRootRouteWithContext<MyRouterContext>()({
- component: () => (
- <>
- <Toaster richColors />
- <Outlet />
- </>
- ),
+ component: () => {
+ const { theme } = useTheme()
+ return (
+ <>
+ <Toaster theme={theme} richColors />
+ <Outlet />
+ </>
+ )
+ },
})