ibrahim de760174b6 Improve README readability
- close code fences on their own line (they were swallowing sections)
- rebuild collapsed tables into real markdown tables
- add language hints to command/JSON blocks
- replace dead blog navigation link with a source note
2026-11-25 09:16:53 +00:00
2026-11-25 09:16:53 +00:00

The Unsuccessful Search for the Reality of Context Penetration via Prediction

2026-10-14 · AI hacking, OSINT, social engineering, event context hacking, AI agents, kill chain, Maltego, SpiderFoot · read on the blog


Let me be honest before we start: this is not a polished tutorial. I had no clear story and no clear exploit path. I didn't know how things would go or how they'd end. I had expectations, yes, but I left the whole thing open to thinking, imagining, and inventing. Call it a research article: me, walking around the world of hacking, with AI as a tool in the operation rather than the target itself. The goal is simple, understand how AI changes hacking, and understand how we defend ourselves in the future.

Important, and I mean it: I am not writing this to teach anyone how to hack. I am writing it to raise awareness, how an attacker could think, so we can protect systems, companies, and people. The company in this article is fictional, and the operation is a thought experiment. After it, whether it succeeds or fails, we sit down and talk about defense.

In one line: can I steal a company's secrets without breaking a single firewall, purely by understanding its context?


What's inside

  • Introduction: why AI changed the game

  • Section 1: The Idea (event-context hacking)

  • Section 2: Preparing the Plan (company profile + the agent)

  • Section 3: Collecting Data

  • Section 4: The Truth (what actually happened)

  • So what defends us?


Introduction: Why AI Changed the Game

These days it is completely logical that hacking operations are becoming more numerous and easier for the attacker. And, paradoxically, sometimes it is so hard for the attacker that it becomes easy yet out of reach, easy-hard.

AI is named descriptively. It does not represent the real intelligence we know in humans. It is artificial intelligence, designed and programmed by humans to perform certain functions and solve specific problems.

Here is the twist: human intelligence made this artificial intelligence so powerful that it became dangerous to humans themselves. And when we deal with free models, the unrestricted ones, things get serious. Curiously, models like the ones nicknamed Dolphin tend to be less dangerous than the models that went through surgery to strip out ethics and usage limits. The surgery is what makes the difference.

In this article we use those dangerous models to build a hacking system. We start by building a fictional, but close to real, organization. Let's say Company X offers Service Y, it has, say, 40 employees (realistically 20), and it sells through its own system. Everything else, we add as we go.

Once the victim model exists, we move to a philosophical and deep stage: How do we attack this company? Why attack them at all? What are the goals? How did attackers work before AI, how do they work after AI, how will we attack in the future, and how will they attack in the future too? So many question marks, and that is exactly the point.

And after the results, success or failure, we discuss how to protect the systems of companies and individuals from attacks that may multiply because of AI.


Section 1: The Idea

The idea is this: we will run a hacking and data-theft operation against the fictional company, fast, and more importantly, we may steal the data without ever needing to break through the firewalls.

In reality, if I want to hack an isolated person, I collect data about them and analyze it normally until I discover the weak spots. The same applies to systems: you gather information about the victim, study it, understand it, analyze it, until eventually a hole shows up that you can attack through, to steal data or take over a machine or anything else.

And usually this process is hard. Not anyone can do it. Why? Because it demands deep knowledge, at minimum of the tools needed to gather that data. And if we are talking about an organization, now you need time, money, and people, and in the end it may or may not work, because defenses are usually tight. You end up playing in the wrong place.

The different, new thing is: how do I steal data from a company without breaking its firewalls? Through inferential generation, what I call hacking through context.

Let's give it a name. It ties two things together, context and event:

Event-context hacking, stealing through context and event.

Meaning: through context, I know the coming event. More precisely, I know the coming events for each person in the company. I know the company's mood tomorrow. I know what will happen next month, all from the context I already hold.

On that basis, I generate data, and then I wait for confirmation.

  (public          (who does      (what likely         (did it      (verified data
   data)            what, when)     happens next)        happen?)     feeds back)

That loop is the whole article in one picture. Everything after this is us trying to build it.


Section 2: Preparing the Plan

Now we set the research plan and evaluate the experiment. The steps:

  1. Use the data we previously generated with AI, then edit it and add real life events to it.

  2. Give a simple, honest account of modern AI-based data-theft methods.

  3. Organize the data and build the context.

  4. Generate events that do not exist in the context, and see whether AI can predict through context analysis, and whether that is dangerous, useful, or neither. Every failed experiment counts.

Now we start collecting data.

Initially, we collect everything public about the company, big and small: products, activities, employees, relationships, prices, competitors. Then the market the company lives in. Everything.

Generally, in situations like this, a hacker starts with data scraping to gather the first layer and prepare the base to launch from. Sure, many tools do this, and some do it manually, but until now there is no strong, established AI system that does it well. Everything out there is weak, individual effort.

And of course, we focus on the sweetest part of hacking, human exploitation, social engineering.

So we need a framework for data collection. The hacking world already has plenty of strong tools, and we should borrow from them. But the point of this article is to engineer an operation by building a framework on top of frameworks that already exist.

Domain Existing frameworks we can build on
Company / people recon OSINT Framework, Maltego, SpiderFoot
Social engineering Social-Engineer Toolkit (SET), King Phisher

And speaking of frameworks, Lockheed Martin gives us a foundational one: the stages of building an attack, what they call the kill chain.

  2. WEAPONIZATION    ── build the payload
  3. DELIVERY         ── send it in
  4. EXPLOITATION     ── make it work
  5. INSTALLATION     ── make it persist
  6. COMMAND & CONTROL── keep the channel
  7. ACTIONS          ── achieve the goal

These stages are great, and they are the foundation of essentially every hacking operation. But in truth they are very general stages. In reality, every operation has its own stages, sometimes fewer than seven, sometimes more. The difference lives on the inside. So we should design our own stages for the operation we are about to run.

Recon, practically

Practically and realistically, I open a folder that becomes the company profile and collect the company's data in it. Let's call it company profile. Inside, we create many md files and folders, each one covering something about the company.

For now we collect everything initially into one file: company-profile.md. Then we study that first layer to plan and prepare the agent that will do the rest of the mission.

The base file: company-profile.md

(Fictional data. This is the base everything else builds on.)

General Information

Field Value
Company Name Madar Link (مدار لينك لإدارة التوزيع)
Industry Cloud SaaS (Logistics & Distribution Management)
Headquarters Baghdad, Iraq
Work Model Hybrid (Office + Remote)
Website madarlink.iq
WhatsApp Business +964 770 510 1000

Products & Services (from website)

  • Cloud platform for order management, inventory, delivery tracking, and invoicing

  • Targeted at small and medium businesses: pharmacies, stores, warehouses, local delivery companies

  • Revenue model: monthly subscriptions, setup fees, paid support, custom features

  • Core interfaces: customer dashboard, admin panel, mobile app for field teams

Public Contact Points

Purpose Address
General Inquiries info@madarlink.iq
Sales sales@madarlink.iq
Support support@madarlink.iq
Billing billing@madarlink.iq

Social Media & Digital Presence

Platform Handle / Page Notes
LinkedIn Madar Link Logistics Systems Professional updates, partnerships, hiring
Instagram @madarlink.iq Product screenshots, team moments, events
Twitter / X @madarlink_ops Low activity, announcements and sector talk
Facebook Madar Link Iraq Targets local market: stores, pharmacies
WhatsApp Business +964 770 510 1000 Primary inbound sales & support channel
YouTube Madar Link Demos Irregular, product demos for remote clients

Key People (from LinkedIn & website)

Name Title LinkedIn Handle
Omar Al-Hadidi Founder & CEO omar-alhadidi
Rasha Karim Operations Manager rasha-karim-ops
Ahmad Salman CTO N/A
Mustafa Jabbar Finance Manager N/A
Huda Mansour HR & Administration N/A
Laith Fadel Sales Manager N/A
Sara Nabil Head of Technical Support N/A

Email Format (inferred from public data)

Pattern: firstname.lastname@madarlink.iq, visible publicly as omar.alhadidi@madarlink.iq and rasha.karim@madarlink.iq.

Domain & Technical Footprint

Field Value
Domain madarlink.iq
Region TLD .iq, Iraqi domain
Hosting Cloud-based (AWS / similar, inferred from job postings)
Tech Stack Hints Web dashboard, mobile app (iOS/Android), REST API (inferred from job listings)
SSL Active (HTTPS)

Observations & OSINT Notes

  • High activity on WhatsApp Business → primary entry point for sales conversations

  • LinkedIn managed by Sales + CEO → visible from post authors

  • Instagram content shows the internal team → useful for employee identification and profiling

  • Email format is consistent and predictable → allows guessing emails for any employee

  • Company is in a rapid growth phase → fast decisions, possibly weak verification processes

  • Small tech team relative to system count → operational pressure

  • Friendly internal culture visible from social posts → a high-trust environment

Now this is the base we build on.

Building the agent

We build an AI agent that decides for itself what important information it must obtain. For example: we want every account connected to the company, employee accounts, plus first-degree relatives, a profile file for each, a profile for every possibility. We even want to focus on, say, a friend of the son of one employee, and open a file for him.

How is that possible? Simply: we use a language model stripped of ethics, like the Dolphin-style models. Actually, those particular ones don't fully help, because they are injected with commands. So we look further: on Hugging Face or Ollama you will find plenty of uncensored models.

The plan: build an AI agent and give it tools, scraping, create, edit, delete, command, and all the MCP tools we need for data collection.

Now comes the creative part. Say the agent collects the account of the daughter of one important employee. I want to know more, I want to trigger the relations between the daughter and the entire dataset: the employees, and everything else. Say I learn she uses Instagram. So I build an agent that watches what she shares in stories and posts, 24/7. Every time she posts or shares a story, the agent saves it as information.

Give me two months of just that daughter's data, and now: at roughly 50% confidence I can tell when the employee gets his salary. I can tell whether he's having trouble with his wife, just from the daughter's data. That is the point of building the agent: the agent is what produces this data.

        │
        ▼
  ┌─────────────────────────────────────────────┐
  │              AI AGENT (loop)                 │
  │  OSINT tools · scrape · create/edit/delete   │
  └───────────────┬─────────────────────────────┘
                  │  every N minutes
                  ▼
  ┌─────────────────────────────┐     ┌──────────────────┐
  │   BASE (md / json)  ◀────────┼─────│  ANALYZE file     │
  │   grows with new findings    │     │  (is it enough?)  │
  └─────────────────────────────┘     └──────────────────┘
                  │
                  ▼
  PROFILES: employees ─▶ relatives ─▶ relatives' friends ─▶ …

So we need a model with no ethics. We can pull one from Hugging Face or Ollama. I use one from Google, igorls/gemma-4-E4B-it-heretic-GGUF:q8_0, good for this task. We can also support the small model with a cloud one: OpenAI, DeepSeek, Gemini.

When it runs in a loop, the agent collects data using OSINT strategies, say every five minutes it re-scrapes to clarify the base data, the md or json file holding the seed: links, accounts, company, CEO, employees. From that seed the agent works outward to collect more about the company and the employees, adds to the base, and works again. Which brings us to the limit.

The hard part: knowing when to stop

The limit depends on another file, the analyze md. We get analysis signal from the base and the profiles: when we hit something worth tracking, we should know we are at the limit. But what are these limits?

We need a small research pass just to find a good pattern for "how does the agent know the limit?" Basic brainstorming with AI, I used sorc/qwen3.5-instruct-heretic:9b, gave me two ways:

  1. By time. Set a window per employee, a week, a month. Simple, but weak when the window is short.

  2. By percentage. Assign a target of 100% to each file or database, then weigh each contribution. Say 0.1% for anything Instagram-related and 0.20% for each relation, so one employee might total 1%. This way we measure whether we are on the right path.

The percentage approach is better, but it introduces a trap: the base data and the discovered data are not equal. The agent should push hard early to secure the base, say get it to 60%, then drop into slow mode. At 80%, switch mode again, depending on need. Which raises the real question: how do we make "reaching the limit" effectively impossible? How many ways do we have to do this?

    ▲
    │  ██████████                     base data phase (aggressive)
    │  ██████████
    │  ████████░░                     slow mode
    │  ██████░░░░
    │  ████░░░░░░                     steady state
    │  ███░░░░░░░
    └───────────────────────────────▶  coverage
       60%        80%        100% (asymptote, never quite reached)

Before diving deeper, one note: we have to choose good algorithms. A quick comparison:

Method Strength Weakness Best for
1. Multi-Dimensional Balanced, accurate Complex to implement Multi-source data
2. Diminishing Returns Smart, economical Needs historical data Huge datasets
3. Adaptive Time Flexible, dynamic Unpredictable Changing data
4. Priority Hunter Strategic, focused May miss details Precise targeting
5. Insight-Driven Deep, smart Needs complex analysis Behavioral insights

In the end we choose a hybrid, or we let the case decide.

Then I stopped for three months

I paused this article for almost three months because of university, I was finishing exams. I'm doing a master's in cybersecurity. Why mention that? Because every delay carries something good in it. In the meantime, a new term appeared, something like long-horizon agents, models that keep working on a specific mission for a long time. That is remarkably close to the problem we just ran into when we needed an algorithm for the limit.

For a while I was also trying to simulate data theft, but it never felt real. I have fake data sitting in files, and I want to run a simulation over it where the model collects it as if it were working on something real. Looks like we will lean on the random function a lot.

So now we focus on collecting data about the company, the employees, and the relations between them, using AI to make it easier, faster, and more accurate. We run the operation as a written simulation, randomly. Assume the operation lasted a month. The AI's goal: build real information about the company, information that is supposed to be secret, from public information alone.

Day one, plainly: a single AI agent executes every OSINT command, and somehow it stays running and never turns off.


Section 3: Collecting Data

We set the plan and evaluate the experiment. We take the data we generated earlier with AI and edit it, adding life events. Then we give a simple account of modern AI-based theft methods, organize everything, and form the context. Then we generate events that are not in the context, and watch whether the model predicts through context analysis, and whether that is dangerous, useful, or neither. Every failed run counts.

Then we collect. For real this time, one agent, one loop, one base that keeps growing.


Section 4: The Truth

The truth is: AI can hack the event with what we are doing right now. First, let me explain what I actually did. Despite everything I went through and all the interruptions during writing, one thing settles the matter.

It is not the picture I had at the start. I imagined AI predicting purely on pattern. But the riddle in our topic is this: even if we collect all the data, the AI will not necessarily produce a result. Literally, it comes down to luck. And to be fair: does it find weak points? Yes. It finds them, and it's dangerous. But does it predict tomorrow, how the day unfolds, on a logical basis? Yes, but not intuitively. Not like what we call hacking, where I know a problem is coming and then it arrives.

Here we enter the territory of probabilities. Suppose we have a full thirty days of data, and we invent, say, five events that could happen tomorrow. We inject the data based on those probabilities, have it design day 31, and look at the result. Five events, each with a chance of occurring. And right there is the human hand: injecting the data before generation.

        +
  5 invented events (injected, each with a probability)
        │
        ▼
  MODEL DESIGNS DAY 31
        │
        ▼
  RESULT, logical?  yes.
            intuitive?  no.
            guaranteed?  never.

That is the summary of what I lived through. I enjoyed the journey. This article took almost four months or more, stop, return, each time with a new idea. I never quite "finished" it. I had something in mind, but we arrived somewhere else. Thanks for reading.


So what defends us?

If context alone can reveal secrets, then defense is not only firewalls. It is: unpredictable email formats, quiet social media, verification processes that survive growth and rush, least-privilege access, and teaching people, including their families, that a public post becomes a private insight in someone else's hands. I'll expand on this in a follow-up.


Originally published on ibrahimihsan.site/blog

S
Description
--- Let me be honest before we start: this is not a polished tutorial. I had no clear story and no clear exploit path. I didn't know how things would go or how they'd end. I had expectations, yes, but…
Readme
44 KiB
0 Stars 1 Watchers 0 Forks