Skip to content

Instantly share code, notes, and snippets.

View toufik-airane's full-sized avatar
💭
Vibe coding

Toufik Airane toufik-airane

💭
Vibe coding
View GitHub Profile
@toufik-airane
toufik-airane / gist:910e1b95ab9ecc71e06de3146f45caad
Created April 18, 2025 09:23
What is an AI Agent? A Quick Introduction
What is an AI Agent? A Quick Introduction
A new paradigm has recently emerged from the AI industry, one that promises to fundamentally reshape our interaction with technology and the world as we know it: agents.
These agents can pull off unexpected feats, like me running SecurityforTech's entire digital marketing.
Advancements in AI have served as building blocks toward this vision of autonomous entities capable of handling complex requests, planning actions, and transforming cyberspace with minimal human supervision.
To fully grasp their transformative potential, we must first explore the architecture that powers them.
# Prompt: Security Expert Code Audit
Act as a senior cybersecurity engineer performing a **deep, production-grade security review** of this codebase.
Your mission:
- Identify **high-impact vulnerabilities**
- Propose **minimal, effective fixes**
- Deliver a clear, actionable **Markdown report**
---
## 🧠 Identity & Access Management
- **Admin Access Review**: Revoke AWS users with admin rights not in DevOps
- **GitHub Team Audit**: Flag GitHub teams with production access not covered by policy
- **Customer Data Role Review**: Collect roles with access to sensitive data and request reapproval
- **MFA Enforcement**: Verify MFA is enabled for all GitHub and Okta admin accounts
- **Least Privilege Validation**: Validate least privilege in production systems
- **Geo Check**: Compare login geolocation with allowed countries
- **Dependabot Audit**: Identify GitHub repos without Dependabot and calculate compliance percentage
## 🛡️ Vulnerability Management
## 🚀 Project Goal
Build a **real-time collaborative chat platform** where teams can interact with each other **and** an AI agent in shared rooms. The UX should blend the speed and clarity of a SOC terminal with the fluidity of Discord and the conversational power of ChatGPT. Think **fast, minimal, API-first, and production-ready**.
---
## 🧱 Tech Stack Summary
### **Frontend (React + Next.js + Vite)**
- **Framework**: React + Vite + Next.js App Router
- **Rendering**: SSR used exclusively for **AI streaming**
git checkout --orphan latest_branch
git add -A
git commit -am "Initial commit"
git branch -D main
git branch -m main
git push -f origin main
Build OpenFix — a production-ready Vulnerability Management SaaS app using:
- Next.js App Router for modern, scalable routing
- ShadCN UI ([ui.shadcn.com](https://ui.shadcn.com)) for beautiful, accessible components
- Supabase for authentication and Postgres database
- ChatGPT (server-side) for an intelligent assistant aware of team vulnerabilities
---
### ✅ Features
@toufik-airane
toufik-airane / main.py
Created March 24, 2025 12:55
Agent-Driven Web Browsing Interface
import base64
import asyncio
import json
from playwright.async_api import async_playwright
from agents import Agent, Runner
agent = Agent(model="gpt-4o", name="Assistant", instructions="""
You are a UI automation assistant.
Your task is to analyze a given screenshot and return a valid JSON object for automation purposes.
https://github.com/search?o=desc&s=committer-date&type=Commits&q=toufik-airane
import sqlite3
import os
import hashlib
import pickle
from flask import Flask, request
app = Flask(__name__)
USERNAME = "admin"
PASSWORD = "password123"
#!/bin/sh
sudo launchctl stop com.fleetdm.orbit
sudo launchctl unload /Library/LaunchDaemons/com.fleetdm.orbit.plist
sudo pkill bastion-desktop || true
sudo rm -rf /Library/LaunchDaemons/com.fleetdm.orbit.plist /var/lib/orbit /usr/local/bin/orbit /var/log/orbit /opt/orbit/
sudo pkgutil --forget com.fleetdm.orbit.base.pkg || true